diff --git a/test/tests/premisses.js b/test/tests/premisses.js index 05bcab18..5af4fa61 100644 --- a/test/tests/premisses.js +++ b/test/tests/premisses.js @@ -3,13 +3,13 @@ describe('premisses', function () { - it('window is the global object', function () { + it('window is global object', function () { assert.isObject(window); - assert.strictEqual(window, util.GLOBAL); + assert.strictEqual(window, window.window); }); - it('jQuery is defined', function () { + it('jQuery and $ are global objects', function () { assert.isFunction(jQuery); assert.strictEqual(jQuery, window.jQuery); @@ -19,7 +19,7 @@ describe('premisses', function () { assert.strictEqual($, window.$); }); - it('lodash is defined', function () { + it('_ is global object', function () { assert.isFunction(_); assert.strictEqual(_, window._); diff --git a/test/util/global.js b/test/util/global.js deleted file mode 100644 index 05aff808..00000000 --- a/test/util/global.js +++ /dev/null @@ -1,2 +0,0 @@ -window.util = window.util || {}; -window.util.GLOBAL = this; diff --git a/test/util/modulejs.js b/test/util/modulejs.js index 6b7c549f..e4bcca05 100644 --- a/test/util/modulejs.js +++ b/test/util/modulejs.js @@ -4,14 +4,14 @@ function clearModulejs() { _.each(modulejs._private.instances, function (val, key) { + delete modulejs._private.instances[key]; }); - } function mockConfigModule() { - modulejs.define('config', util.uniqObj()); + modulejs.define('config', window.util.uniqObj()); } window.util = window.util || {};