Fix modularized npm build tests.

This commit is contained in:
jdalton
2015-04-26 14:22:46 -07:00
parent 141a32d388
commit df176dfe8a

View File

@@ -2573,11 +2573,11 @@
test('should return `_.identity` when `func` is nullish', 1, function() { test('should return `_.identity` when `func` is nullish', 1, function() {
var object = {}, var object = {},
values = [, null, undefined], values = [, null, undefined],
expected = _.map(values, _.constant([_.identity, object])); expected = _.map(values, _.constant([!isNpm && _.identity, object]));
var actual = _.map(values, function(value, index) { var actual = _.map(values, function(value, index) {
var identity = index ? _.callback(value) : _.callback(); var identity = index ? _.callback(value) : _.callback();
return [identity, identity(object)]; return [!isNpm && identity, identity(object)];
}); });
deepEqual(actual, expected); deepEqual(actual, expected);