mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Cleanup assign/defaults/merge unit test. [ci skip]
This commit is contained in:
@@ -2879,11 +2879,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should work with `_.reduce`', 1, function() {
|
test('`_.' + methodName + '` should work with `_.reduce`', 1, function() {
|
||||||
var actual = { 'a': 1},
|
var array = [{ 'b': 2 }, { 'c': 3 }];
|
||||||
array = [{ 'b': 2 }, { 'c': 3 }];
|
deepEqual(_.reduce(array, func, { 'a': 1}), { 'a': 1, 'b': 2, 'c': 3 });
|
||||||
|
|
||||||
_.reduce(array, func, actual);
|
|
||||||
deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user