Cleanup assign/defaults/merge unit test. [ci skip]

This commit is contained in:
John-David Dalton
2014-01-20 09:31:55 -08:00
parent 052c484abd
commit ca58bab1f0

View File

@@ -2879,11 +2879,8 @@
});
test('`_.' + methodName + '` should work with `_.reduce`', 1, function() {
var actual = { 'a': 1},
array = [{ 'b': 2 }, { 'c': 3 }];
_.reduce(array, func, actual);
deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3});
var array = [{ 'b': 2 }, { 'c': 3 }];
deepEqual(_.reduce(array, func, { 'a': 1}), { 'a': 1, 'b': 2, 'c': 3 });
});
});