mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 04:17:49 +00:00
Fix loading baseEach for commonjs modularize tests.
This commit is contained in:
@@ -277,8 +277,10 @@
|
|||||||
|
|
||||||
// expose `baseEach` for better code coverage
|
// expose `baseEach` for better code coverage
|
||||||
if (isModularize && !isNpm) {
|
if (isModularize && !isNpm) {
|
||||||
var path = require('path');
|
var path = require('path'),
|
||||||
_._baseEach = require(path.join(path.dirname(filePath), 'internals', 'baseEach.js'));
|
baseEach = require(path.join(path.dirname(filePath), 'internals', 'baseEach.js'));
|
||||||
|
|
||||||
|
_._baseEach = baseEach.baseEach || baseEach;
|
||||||
}
|
}
|
||||||
// allow bypassing native checks
|
// allow bypassing native checks
|
||||||
var _fnToString = Function.prototype.toString;
|
var _fnToString = Function.prototype.toString;
|
||||||
|
|||||||
Reference in New Issue
Block a user