Repository navigation
License errors #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+59
−17
Merged
License errors #380
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9e4295a
licence errors
izulin 7566291
Merge branch 'develop' into pu/issue-306
izulin f17eea6
linter
izulin e4858d3
tests
izulin 9997990
syntax error
izulin 779198d
not in translation
izulin 77ae158
fixed compilation
izulin 9bcc843
error translations
izulin 7eb3b17
lic test
izulin b3f93fa
Update src/i18n/TranslationPackage.ts
izulin b710ab3
Update src/interpreter/Interpreter.ts
izulin f561a96
Update src/i18n/TranslationPackage.ts
izulin 9103550
typing
izulin 7bab799
typing restored
izulin 5ec71cd
.
izulin a121f03
Update src/Serialization.ts
izulin 080dbd2
Merge branch 'develop' into pu/issue-306
izulin 92071f5
Merge branch 'develop' into pu/issue-306
izulin 5b5059e
Merge branch 'develop' into pu/issue-306
izulin bf2de10
error messages
izulin 3209331
Merge branch 'develop' into pu/issue-306
izulin 99531f0
correct logic
izulin 4f21ce2
doc
izulin 373cc22
.
izulin 7fb55c9
.
izulin 9d6e0a7
Merge branch 'develop' into pu/issue-306
izulin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import {ErrorType, HyperFormula} from '../src' | ||
| import {CellError} from '../src/Cell' | ||
| import {ErrorMessage} from '../src/error-message' | ||
| import {adr, detailedError} from './testUtils' | ||
|
|
||
| describe( 'Wrong licence', () => { | ||
| it('eval', () => { | ||
| const engine = HyperFormula.buildFromArray([['=TRUE()', null, 1, '=A(']], {licenseKey: ''}) | ||
| expect(engine.getCellValue(adr('A1'))).toEqual(detailedError(ErrorType.LIC, ErrorMessage.LicenseKey('missing'))) | ||
| expect(engine.getCellValue(adr('B1'))).toEqual(null) | ||
| expect(engine.getCellValue(adr('C1'))).toEqual(1) | ||
| expect(engine.getCellValue(adr('D1'))).toEqual(detailedError(ErrorType.ERROR, ErrorMessage.ParseError)) | ||
| }) | ||
|
|
||
| it('serialization', () => { | ||
| const engine = HyperFormula.buildFromArray([['=TRUE()', null, 1, '=A(']], {licenseKey: ''}) | ||
| expect(engine.getSheetSerialized(0)).toEqual([['=TRUE()', null, 1, '=A(']]) | ||
| }) | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing type for translation package was not enough? If I understood correctly
ts-ignorewas needed there. Do we need another type?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this propagates into Config (e.g. buildErrorMapping)