From b2f094da014026074273964f5cba618a476b3248 Mon Sep 17 00:00:00 2001 From: jdalton Date: Tue, 7 Apr 2015 09:29:44 -0700 Subject: [PATCH] Add another path test to a deep property test of `_.result`. --- test/test.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 09a55d5fb..702ca2f35 100644 --- a/test/test.js +++ b/test/test.js @@ -12970,10 +12970,13 @@ 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 }; - strictEqual(_.result(value, ['deep', 'b']), 1); - }) + + _.each(['deep.b', ['deep', 'b']], function(path) { + strictEqual(_.result(value, path), 1); + }); + }); }()); /*--------------------------------------------------------------------------*/