mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-09 00:57:43 +00:00
chore(web): adjust types in tests
This commit is contained in:
parent
a8a1dee6e3
commit
74db2d0bce
1 changed files with 3 additions and 3 deletions
|
|
@ -119,7 +119,7 @@ describe('InputProcessor', function() {
|
|||
|
||||
// Load the keyboard.
|
||||
let keyboardLoader = new NodeKeyboardLoader(new JSKeyboardInterface({}, MinimalKeymanGlobal, new VariableStoreTestSerializer()));
|
||||
const keyboard = await keyboardLoader.loadKeyboardFromPath(require.resolve('@keymanapp/common-test-resources/keyboards/test_chirality.js'));
|
||||
const keyboard = await keyboardLoader.loadKeyboardFromPath(require.resolve('@keymanapp/common-test-resources/keyboards/test_chirality.js')) as JSKeyboard;
|
||||
keyboardWithHarness = keyboardLoader.harness as JSKeyboardInterface;
|
||||
keyboardWithHarness.activeKeyboard = keyboard;
|
||||
|
||||
|
|
@ -227,7 +227,7 @@ describe('InputProcessor', function() {
|
|||
before(async function () {
|
||||
// Load the keyboard.
|
||||
let keyboardLoader = new NodeKeyboardLoader(new JSKeyboardInterface({}, MinimalKeymanGlobal, new VariableStoreTestSerializer()));
|
||||
const keyboard = await keyboardLoader.loadKeyboardFromPath(require.resolve('@keymanapp/common-test-resources/keyboards/test_8568_deadkeys.js'));
|
||||
const keyboard = await keyboardLoader.loadKeyboardFromPath(require.resolve('@keymanapp/common-test-resources/keyboards/test_8568_deadkeys.js')) as JSKeyboard;
|
||||
keyboardWithHarness = keyboardLoader.harness as JSKeyboardInterface;
|
||||
keyboardWithHarness.activeKeyboard = keyboard;
|
||||
|
||||
|
|
@ -300,7 +300,7 @@ describe('InputProcessor', function() {
|
|||
before(async () => {
|
||||
// Load the keyboard.
|
||||
let keyboardLoader = new NodeKeyboardLoader(new JSKeyboardInterface({}, MinimalKeymanGlobal, new VariableStoreTestSerializer()));
|
||||
const keyboard = await keyboardLoader.loadKeyboardFromPath(require.resolve('@keymanapp/common-test-resources/keyboards/test_simple_deadkeys.js'));
|
||||
const keyboard = await keyboardLoader.loadKeyboardFromPath(require.resolve('@keymanapp/common-test-resources/keyboards/test_simple_deadkeys.js')) as JSKeyboard;
|
||||
keyboardWithHarness = keyboardLoader.harness as JSKeyboardInterface;
|
||||
keyboardWithHarness.activeKeyboard = keyboard;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue