mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Add another path test to a deep property test of _.result.
This commit is contained in:
@@ -12970,10 +12970,13 @@
|
|||||||
strictEqual(actual, 1);
|
strictEqual(actual, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should call deep property methods with the correct `this` binding', 1, function() {
|
test('should call deep property methods with the correct `this` binding', 2, function() {
|
||||||
var value = { 'deep': object };
|
var value = { 'deep': object };
|
||||||
strictEqual(_.result(value, ['deep', 'b']), 1);
|
|
||||||
})
|
_.each(['deep.b', ['deep', 'b']], function(path) {
|
||||||
|
strictEqual(_.result(value, path), 1);
|
||||||
|
});
|
||||||
|
});
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user