From 691d566482172e3b69320fb035df9824fe81bd5d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 22 Aug 2014 22:27:13 -0700 Subject: [PATCH] Add test for string as object when passed as the third param to `_.forEach` callbacks. --- test/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index c67b85776..847fb00df 100644 --- a/test/test.js +++ b/test/test.js @@ -3889,7 +3889,7 @@ 'object': Object('abc') }, function(collection, key) { - test('`_.' + methodName + '` should work with a string ' + key + ' for `collection` (test in IE < 9)', 2, function() { + test('`_.' + methodName + '` should work with a string ' + key + ' for `collection` (test in IE < 9)', 3, function() { var args, values = []; @@ -3905,6 +3905,7 @@ deepEqual(args, ['c', 2, collection]); deepEqual(values, ['c', 'b', 'a']); } + strictEqual(typeof args[2], 'object'); }); });