Prevent test fails for the npm build.

This commit is contained in:
John-David Dalton
2014-04-15 02:17:07 -07:00
parent 7f1164b6a6
commit a53d5dc791

View File

@@ -10399,6 +10399,7 @@
function callback() { function callback() {
actual = this; actual = this;
} }
if (func) {
if (/^reduce/.test(methodName) || methodName == 'transform') { if (/^reduce/.test(methodName) || methodName == 'transform') {
func(array, callback, 0, null); func(array, callback, 0, null);
} else if (_.contains(['assign', 'merge'], methodName)) { } else if (_.contains(['assign', 'merge'], methodName)) {
@@ -10411,6 +10412,10 @@
func(array, callback, null); func(array, callback, null);
} }
strictEqual(actual, expected, message); strictEqual(actual, expected, message);
}
else {
skipTest();
}
}); });
}); });