mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Make whereIndicator check strict and make the _.where deep object comparison unit test deeper.
Former-commit-id: b9c59ff56b3ab7acd519888407de5dd02d6475cf
This commit is contained in:
@@ -2494,10 +2494,10 @@
|
||||
});
|
||||
|
||||
test('should deep compare `properties` values', function() {
|
||||
var collection = [{ 'a': { 'b': 1, 'c': 2 } }],
|
||||
var collection = [{ 'a': { 'b': { 'c': 1, 'd': 2 }, 'e': 3 }, 'f': 4 }],
|
||||
expected = _.cloneDeep(collection);
|
||||
|
||||
deepEqual(_.where(collection, { 'a': { 'b': 1 } }), expected);
|
||||
deepEqual(_.where(collection, { 'a': { 'b': { 'c': 1 } } }), expected);
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user