Skip to content

Commit

Permalink
fix(web): fixes Web's Karma test:integrated suite (last one)
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed May 7, 2024
1 parent ffba4a6 commit 3989298
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion web/src/test/auto/integrated/base.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ module.exports = {

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'chai', 'fixture'],
frameworks: ['mocha', 'fixture'],

// list of files / patterns to load in the browser
files: [
{ pattern: 'node_modules/chai/chai.js', watched: true, served: true, included: false, type: 'module'},
'web/src/test/auto/integrated/modernizr.js', // A dependency-managed utility script that helps with browser feature detection.
{pattern: 'web/src/test/auto/integrated/test_init_check.js', type: 'module'}, // Ensures that tests will initialize properly
'common/test/resources/timeout-adapter.js', // Handles configuration timeout setup at runtime.
Expand Down
2 changes: 1 addition & 1 deletion web/src/test/auto/integrated/cases/basics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import { DEVICE_DETECT_FAILURE, setupKMW, teardownKMW } from "../test_utils.js";

Expand Down
2 changes: 1 addition & 1 deletion web/src/test/auto/integrated/cases/element_interfaces.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import { extendString, Mock } from '/@keymanapp/keyboard-processor/build/lib/index.mjs';
import * as wrappers from '/@keymanapp/keyman/build/engine/element-wrappers/lib/index.mjs';
Expand Down
3 changes: 2 additions & 1 deletion web/src/test/auto/integrated/cases/engine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import {
loadKeyboardFromJSON,
runKeyboardTestFromJSON,
Expand Down
3 changes: 2 additions & 1 deletion web/src/test/auto/integrated/cases/engine_chirality.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import {
loadKeyboardFromJSON,
runKeyboardTestFromJSON,
Expand Down
2 changes: 1 addition & 1 deletion web/src/test/auto/integrated/cases/events.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import {
loadKeyboardFromJSON,
Expand Down
2 changes: 1 addition & 1 deletion web/src/test/auto/integrated/cases/test_config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

/*
* A canary test to ensure our timeout configurations are working correctly for our CI.
Expand Down
2 changes: 1 addition & 1 deletion web/src/test/auto/integrated/cases/text_selection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import {
DEVICE_DETECT_FAILURE,
Expand Down
2 changes: 1 addition & 1 deletion web/src/test/auto/integrated/test_init_check.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// A simple "does device detection work properly" unit test.
// We'll let things break after this reports, since this will likely signal a LOT of other failures.
var assert = chai.assert;
import { assert } from '/node_modules/chai/chai.js';

import Device from '/@keymanapp/keyman/build/engine/device-detect/lib/index.mjs';

Expand Down

0 comments on commit 3989298

Please sign in to comment.