From 74482c12570889f1cffc3b5db9c8cc896c516879 Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Fri, 5 May 2017 21:22:54 -0700 Subject: [PATCH] Rename to CachelessRequire --- .../src/extension-common/test/pac-kitchen.js | 6 +++--- .../src/extension-common/test/utils.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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');