From 565cc05b4883d1bd383f224be182331e7f570ada Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 12 Apr 2014 23:51:55 -0700 Subject: [PATCH] Avoid strict comparison to function reference in `_.callback` test. --- test/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index f35a5dbd9..c4444ded7 100644 --- a/test/test.js +++ b/test/test.js @@ -1680,9 +1680,11 @@ deepEqual(actual, values); }); - test('should return `identity` when `func` is `null` or `undefined`', 2, function() { + test('should return `_.identity` when `func` is `null` or `undefined`', 2, function() { + var object = {}; _.each([null, undefined], function(value) { - strictEqual(_.callback(value), _.identity); + var callback = _.callback(value); + strictEqual(callback(object), object); }); });