Rename to CachelessRequire

This commit is contained in:
Ilya Ig. Petrov 2017-05-05 21:22:54 -07:00
parent 9030f9122c
commit 74482c1257
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ const Storage = require('_project-root/tools/sinon-storage');
const Chai = require('chai'); const Chai = require('chai');
const Mocha = require('mocha'); 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 () { Mocha.describe('window.apis.pacKitchen', function () {
@ -17,13 +17,13 @@ Mocha.describe('window.apis.pacKitchen', function () {
chrome: Chrome, chrome: Chrome,
localStorage: new Storage(), localStorage: new Storage(),
}; };
MyRequire('../00-init-apis.js'); CachelessRequire('../00-init-apis.js');
}); });
Mocha.it('is evaluated and defined', function () { 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'); Chai.assert.ok(window.apis.pacKitchen, 'exports to globals');
}); });

View File

@ -3,7 +3,7 @@
const Chai = require('chai'); const Chai = require('chai');
const Mocha = require('mocha'); 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 () { Mocha.describe('window.utils', function () {
@ -17,7 +17,7 @@ Mocha.describe('window.utils', function () {
Mocha.it('exports as global', function () { Mocha.it('exports as global', function () {
MyRequire(initApis); CachelessRequire(initApis);
Chai.assert.ok(window.utils, 'exported to globals'); Chai.assert.ok(window.utils, 'exported to globals');
Chai.assert.isNotOk(window.apis.version.ifMini, 'is not MINI version'); Chai.assert.isNotOk(window.apis.version.ifMini, 'is not MINI version');