h5ai/test/util/modulejs.js

22 lines
401 B
JavaScript
Raw Normal View History

2015-04-27 17:55:25 -04:00
(function () {
'use strict';
function clearModulejs() {
_.each(modulejs._private.instances, function (val, key) {
2015-04-27 18:25:48 -04:00
2015-04-27 17:55:25 -04:00
delete modulejs._private.instances[key];
});
}
function mockConfigModule() {
2015-04-27 18:25:48 -04:00
modulejs.define('config', window.util.uniqObj());
2015-04-27 17:55:25 -04:00
}
window.util = window.util || {};
window.util.clearModulejs = clearModulejs;
window.util.mockConfigModule = mockConfigModule;
}());