diff --git a/test/test.js b/test/test.js index fc7704cbf..96ec1c3fb 100644 --- a/test/test.js +++ b/test/test.js @@ -232,6 +232,12 @@ window.document = {}; window.window = window; + var _clearTimeout = global.clearTimeout; + global.clearTimeout = Number; + + var _setTimeout = global.setTimeout; + global.setTimeout = Number; + // add extensions Function.prototype._method = function() {}; @@ -257,12 +263,6 @@ var _keys = Object.keys; Object.keys = function() {}; - var _clearTimeout = global.clearTimeout; - global.clearTimeout = function() {}; - - var _setTimeout = global.setTimeout; - global.setTimeout = function() {}; - // load Lo-Dash and expose it to the bad extensions/shims lodashBizarro = (lodashBizarro = require(filePath))._ || lodashBizarro;