From 5beef690adda9679d1661a132e3c15878fce904b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 25 Jan 2014 18:11:25 -0800 Subject: [PATCH] Fix loading `baseEach` for commonjs modularize tests. --- test/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index b8a8e4099..4eda71957 100644 --- a/test/test.js +++ b/test/test.js @@ -277,8 +277,10 @@ // expose `baseEach` for better code coverage if (isModularize && !isNpm) { - var path = require('path'); - _._baseEach = require(path.join(path.dirname(filePath), 'internals', 'baseEach.js')); + var path = require('path'), + baseEach = require(path.join(path.dirname(filePath), 'internals', 'baseEach.js')); + + _._baseEach = baseEach.baseEach || baseEach; } // allow bypassing native checks var _fnToString = Function.prototype.toString;