aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-japanese.js2
-rw-r--r--test/test-sw.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test-japanese.js b/test/test-japanese.js
index e784c142..e83b0c1b 100644
--- a/test/test-japanese.js
+++ b/test/test-japanese.js
@@ -21,7 +21,7 @@ const {VM} = require('../dev/vm');
const vm = new VM();
vm.execute([
- 'mixed/lib/wanakana.min.js',
+ 'lib/wanakana.min.js',
'mixed/js/japanese.js',
'bg/js/text-source-map.js'
]);
diff --git a/test/test-sw.js b/test/test-sw.js
index 5da80dd2..803bb0c2 100644
--- a/test/test-sw.js
+++ b/test/test-sw.js
@@ -37,7 +37,7 @@ function getAllHtmlScriptPaths(fileName) {
function convertBackgroundScriptsToServiceWorkerScripts(scripts) {
// Use parse5-based SimpleDOMParser
- scripts.splice(0, 0, '/mixed/lib/parse5.js');
+ scripts.splice(0, 0, '/lib/parse5.js');
const index = scripts.indexOf('/bg/js/native-simple-dom-parser.js');
assert.ok(index >= 0);
scripts[index] = '/bg/js/simple-dom-parser.js';
@@ -65,7 +65,7 @@ function main() {
vm.assert.deepStrictEqual(scripts, importedScripts);
// Verify that eslint config lists files correctly
- const expectedSwRulesFiles = scripts.filter((src) => !src.startsWith('/mixed/lib/')).map((src) => `${extDirName}${src}`);
+ const expectedSwRulesFiles = scripts.filter((src) => !src.startsWith('/lib/')).map((src) => `${extDirName}${src}`);
const eslintConfig = JSON.parse(fs.readFileSync(path.join(rootDir, '.eslintrc.json'), {encoding: 'utf8'}));
const swRules = eslintConfig.overrides.find((item) => (
typeof item.env === 'object' &&