Fix failing test in node.

This commit is contained in:
John-David Dalton
2013-12-13 08:32:09 -08:00
parent 40421f4321
commit 7fcbc3c003

View File

@@ -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;