chore(web): adjust types in tests

This commit is contained in:
Marc Durdin 2026-09-01 14:22:00 +02:00
parent a8a1dee6e3
commit 74db2d0bce

View file

@ -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;