Skip to content

Commit

Permalink
Merge pull request #10848 from keymanapp/test/developer/kmc-keyboard-…
Browse files Browse the repository at this point in the history
…info-unit-test

test(developer): kmc keyboard info compiler messages unit tests
  • Loading branch information
markcsinclair authored Mar 13, 2024
2 parents 846ae36 + b5a21bd commit ae118f4
Show file tree
Hide file tree
Showing 11 changed files with 5,944 additions and 293 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ export class KeyboardInfoCompiler implements KeymanCompiler {
if(sources.jsFilename) {
keyboard_info.jsFilename = this.callbacks.path.basename(sources.jsFilename);
// Always overwrite with actual file size
/* c8 ignore next 5 */
keyboard_info.jsFileSize = this.callbacks.fileSize(sources.jsFilename);
if(keyboard_info.jsFileSize === undefined) {
this.callbacks.reportMessage(KeyboardInfoCompilerMessages.Error_FileDoesNotExist({filename:sources.jsFilename}));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a file used to test the license is not valid error (see keyboard-info-compiler-messages.ts)

This file was deleted.

Binary file not shown.
187 changes: 0 additions & 187 deletions developer/src/kmc-keyboard-info/test/fixtures/no-kmp/khmer_angkor.kpj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
khmer_angkor.js -text
Loading

0 comments on commit ae118f4

Please sign in to comment.