mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Rename to CachelessRequire
This commit is contained in:
parent
9030f9122c
commit
74482c1257
|
@ -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');
|
||||
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user