summaryrefslogtreecommitdiff
path: root/test/test-sw.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-13 21:28:47 -0500
committerGitHub <noreply@github.com>2021-02-13 21:28:47 -0500
commitdeed5027cd18bcdb9cb9d13cb7831be0ec5384e8 (patch)
treec4df1967a117bf05398b694290e2960b8ff4e970 /test/test-sw.js
parente9358997c03ee6ca2b5e9f26e8e416c8508c88e6 (diff)
Move mixed/lib/ to lib/ (#1382)
Diffstat (limited to 'test/test-sw.js')
-rw-r--r--test/test-sw.js4
1 files changed, 2 insertions, 2 deletions
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' &&