Fix failing test in Node < 0.12.

This commit is contained in:
John-David Dalton
2015-11-01 15:36:57 -08:00
parent 6c2ada9ffc
commit 2f93e0a499

View File

@@ -19370,8 +19370,11 @@
QUnit.test('`_.' + methodName + '` should convert empty values to `0` or `NaN`', function(assert) {
assert.expect(1);
var values = falsey.concat(whitespace),
expected = lodashStable.map(values, isInt ? lodashStable.constant(0) : Number);
var values = falsey.concat(whitespace);
var expected = lodashStable.map(values, function(value) {
return (isInt || (value === whitespace)) ? 0 : Number(value);
});
var actual = lodashStable.map(values, function(value, index) {
return index ? func(value) : func();