mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 20:14:37 -04:00
Refactor test runner
This commit is contained in:
parent
df76ca0807
commit
c8bffa006b
4 changed files with 55 additions and 37 deletions
21
test/util/modulejs.js
Normal file
21
test/util/modulejs.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
|
||||
function clearModulejs() {
|
||||
|
||||
_.each(modulejs._private.instances, function (val, key) {
|
||||
delete modulejs._private.instances[key];
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function mockConfigModule() {
|
||||
|
||||
modulejs.define('config', util.uniqObj());
|
||||
}
|
||||
|
||||
window.util = window.util || {};
|
||||
window.util.clearModulejs = clearModulejs;
|
||||
window.util.mockConfigModule = mockConfigModule;
|
||||
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue