mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Add nested check to _.merge test for non-plain object source values.
This commit is contained in:
@@ -14971,8 +14971,8 @@
|
||||
expected = lodashStable.map(values, stubTrue);
|
||||
|
||||
var actual = lodashStable.map(values, function(value) {
|
||||
var object = _.merge({}, { 'value': value });
|
||||
return object.value === value;
|
||||
var object = _.merge({}, { 'a': value, 'b': { 'c': value } });
|
||||
return object.a === value && object.b.c === value;
|
||||
});
|
||||
|
||||
assert.deepEqual(actual, expected);
|
||||
|
||||
Reference in New Issue
Block a user