diff --git a/browser/components/aboutwelcome/karma.mc.config.js b/browser/components/aboutwelcome/karma.mc.config.js index 4ec714360124..5ecfdfd6a342 100644 --- a/browser/components/aboutwelcome/karma.mc.config.js +++ b/browser/components/aboutwelcome/karma.mc.config.js @@ -4,7 +4,7 @@ const path = require("path"); const webpack = require("webpack"); -const { ResourceUriPlugin } = require("../newtab/tools/resourceUriPlugin"); +const { ResourceUriPlugin } = require("../../tools/resourceUriPlugin"); const PATHS = { // Where is the entry point for the unit tests? diff --git a/browser/components/asrouter/karma.mc.config.js b/browser/components/asrouter/karma.mc.config.js index a544dbe58303..5b91278909b5 100644 --- a/browser/components/asrouter/karma.mc.config.js +++ b/browser/components/asrouter/karma.mc.config.js @@ -4,7 +4,7 @@ const path = require("path"); const webpack = require("webpack"); -const { ResourceUriPlugin } = require("../newtab/tools/resourceUriPlugin"); +const { ResourceUriPlugin } = require("../../tools/resourceUriPlugin"); const PATHS = { // Where is the entry point for the unit tests? diff --git a/browser/components/newtab/karma.mc.config.js b/browser/components/newtab/karma.mc.config.js index 2d1598890694..4550343420f0 100644 --- a/browser/components/newtab/karma.mc.config.js +++ b/browser/components/newtab/karma.mc.config.js @@ -4,7 +4,7 @@ const path = require("path"); const webpack = require("webpack"); -const { ResourceUriPlugin } = require("./tools/resourceUriPlugin"); +const { ResourceUriPlugin } = require("../../tools/resourceUriPlugin"); const PATHS = { // Where is the entry point for the unit tests? diff --git a/browser/components/newtab/webpack.system-addon.config.js b/browser/components/newtab/webpack.system-addon.config.js index 2f72da87e88d..88535f50a084 100644 --- a/browser/components/newtab/webpack.system-addon.config.js +++ b/browser/components/newtab/webpack.system-addon.config.js @@ -4,7 +4,7 @@ const path = require("path"); const webpack = require("webpack"); -const { ResourceUriPlugin } = require("./tools/resourceUriPlugin"); +const { ResourceUriPlugin } = require("../../tools/resourceUriPlugin"); const absolute = relPath => path.join(__dirname, relPath); diff --git a/browser/components/newtab/tools/resourceUriPlugin.js b/browser/tools/resourceUriPlugin.js similarity index 96% rename from browser/components/newtab/tools/resourceUriPlugin.js rename to browser/tools/resourceUriPlugin.js index a2244f27fa6f..1eca7ff85b15 100644 --- a/browser/components/newtab/tools/resourceUriPlugin.js +++ b/browser/tools/resourceUriPlugin.js @@ -6,6 +6,7 @@ // and translating the uri into a relative filesytem path where the file may be // found when running within the Karma / Mocha test framework. +/* eslint-env node */ const path = require("path"); module.exports = { @@ -29,6 +30,7 @@ module.exports = { /** * @param {object} options + * Object passed during the instantiation of ResourceUriPlugin * @param {ResourceReplacement[]} options.resourcePathRegExes * An array of regex/string tuples to perform replacements on for * imports involving resource:// URIs.