spiegel-keyman/developer/js/tests
Marc Durdin 2f2f998da6 fix(developer): schema conformance for model package compiler
Fixes #3199.

Ensures that the model package compiler passes schema validation for
kmp.json. Three problems were corrected:

1. `followKeyboardVersion` is a source-only property; it should not be
   in deployable kmp.json.
2. `copyLocation` should have been a number not a string (in XML
   everything is a string... but JSON has more control here)
3. `fileType` is a source-only property; it also should not be in
   deployable kmp.json.

I have checked that the resulting files validate against the package
kmp.json schema version 1.1.0 defined at
https://github.com/keymanapp/api.keyman.com/blob/master/schemas/package/1.1.0/package.json.

None of these fixes should impact the use of these packages in target
apps. `followKeyboardVersion` and `fileType` are used only in the source
at package development time, and `copyLocation` is unused (and should be
eliminated from Keyman altogether in the future).
2021-03-01 10:57:49 +11:00
..
fixtures fix(developer): schema conformance for model package compiler 2021-03-01 10:57:49 +11:00
helpers refactor(developer/compilers): extract enum: LogLevel 2020-07-22 11:35:20 -06:00
README.md Add minimal README. 2019-07-04 09:47:04 -06:00
test-compile-model-with-pseudoclosure.ts chore(common/models/types): CasingEnum -> CasingForm 2020-11-11 08:55:26 +07:00
test-compile-model.ts test(developer/compilers): test compile model with script overrides 2020-08-24 15:45:17 -06:00
test-compile-trie.ts Merge branch 'master' into lmlayer-default-searchtermtokey 2020-04-22 08:24:21 -06:00
test-default-apply-case.ts fix(developer/compilers): removes committed testing .only 2020-11-04 15:08:21 +07:00
test-default-search-term-to-key.ts chore(common/models/types): CasingEnum -> CasingForm 2020-11-11 08:55:26 +07:00
test-error-logger.ts test(developer/compilers): assert new error does not get logged 2020-07-23 09:00:13 -06:00
test-join-word-breaker.ts change(common/models): import default wordbreaker from package 2020-05-25 08:45:48 -06:00
test-model-definitions.ts chore(common/models/types): CasingEnum -> CasingForm 2020-11-11 08:55:26 +07:00
test-override-script-defaults.ts test(developer/compilers): strong assertions for script overrides breaker 2020-08-26 10:11:46 -06:00
test-package-compiler.ts [Developer] Add first test for kmp compiler 2019-09-02 08:44:54 +10:00
test-parse-wordlist.ts refactor(developer/compilers): change warning names to have CWARN_ prefixes 2020-07-22 15:20:27 -06:00
test-punctuation.ts fix(developer/compilers): restores accidentally removed file 2020-11-05 10:01:39 +07:00
tsconfig.json Fix tsconfig... 2019-07-25 11:22:07 -06:00

Lexical Model and Package Compiler

Build

npm run build

Test

npm test

NOTE: ensure you run npm run build before running the tests!