-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for internal key usage for Hot (#309)
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
18 changes: 18 additions & 0 deletions
18
test/helpers/licenseKeyValidator/internal-use-in-handsontable.spec.ts
This file contains 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,18 @@ | ||
/** | ||
* The license key message is printed only once per window/process env. | ||
* Jest provides complete isolation between files only. That is why the test | ||
* contains only one case about "console.warn" message. | ||
*/ | ||
import {HyperFormula} from '../../../src' | ||
|
||
describe('license key', () => { | ||
it('should not warn a message about invalid key when "internal-use-in-handsontable" is used', () => { | ||
spyOn(console, 'warn') | ||
|
||
HyperFormula.buildEmpty({ | ||
licenseKey: 'internal-use-in-handsontable', | ||
}) | ||
|
||
expect(console.warn).not.toHaveBeenCalled() | ||
}) | ||
}) |