mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Fix failing test in node.
This commit is contained in:
12
test/test.js
12
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user