diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js index 4a8e695..d62a678 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/pac-kitchen.js @@ -5,7 +5,7 @@ const Storage = require('_project-root/tools/sinon-storage'); const Chai = require('chai'); const Mocha = require('mocha'); -const MyRequire = require('_project-root/tools/cacheless-require')(module); +const CachelessRequire = require('_project-root/tools/cacheless-require')(module); Mocha.describe('window.apis.pacKitchen', function () { @@ -17,13 +17,13 @@ Mocha.describe('window.apis.pacKitchen', function () { chrome: Chrome, localStorage: new Storage(), }; - MyRequire('../00-init-apis.js'); + CachelessRequire('../00-init-apis.js'); }); Mocha.it('is evaluated and defined', function () { - MyRequire('../35-pac-kitchen-api.js'); + CachelessRequire('../35-pac-kitchen-api.js'); Chai.assert.ok(window.apis.pacKitchen, 'exports to globals'); }); diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js index 52d3e06..bf2f9f1 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/test/utils.js @@ -3,7 +3,7 @@ const Chai = require('chai'); const Mocha = require('mocha'); -const MyRequire = require('_project-root/tools/cacheless-require')(module); +const CachelessRequire = require('_project-root/tools/cacheless-require')(module); Mocha.describe('window.utils', function () { @@ -17,7 +17,7 @@ Mocha.describe('window.utils', function () { Mocha.it('exports as global', function () { - MyRequire(initApis); + CachelessRequire(initApis); Chai.assert.ok(window.utils, 'exported to globals'); Chai.assert.isNotOk(window.apis.version.ifMini, 'is not MINI version');