mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +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.document = {};
|
||||||
window.window = window;
|
window.window = window;
|
||||||
|
|
||||||
|
var _clearTimeout = global.clearTimeout;
|
||||||
|
global.clearTimeout = Number;
|
||||||
|
|
||||||
|
var _setTimeout = global.setTimeout;
|
||||||
|
global.setTimeout = Number;
|
||||||
|
|
||||||
// add extensions
|
// add extensions
|
||||||
Function.prototype._method = function() {};
|
Function.prototype._method = function() {};
|
||||||
|
|
||||||
@@ -257,12 +263,6 @@
|
|||||||
var _keys = Object.keys;
|
var _keys = Object.keys;
|
||||||
Object.keys = function() {};
|
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
|
// load Lo-Dash and expose it to the bad extensions/shims
|
||||||
lodashBizarro = (lodashBizarro = require(filePath))._ || lodashBizarro;
|
lodashBizarro = (lodashBizarro = require(filePath))._ || lodashBizarro;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user