From a723612141cb751ee469665fcc5a20c415068db1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 8 Apr 2014 08:57:26 -0700 Subject: [PATCH] Add `null` and `undefined` values tests for `thisArg`. --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index e6f8efd32..3cc9a7b3a 100644 --- a/test/test.js +++ b/test/test.js @@ -1650,8 +1650,8 @@ (function() { test('should create a callback with a falsey `thisArg`', 1, function() { - var values = _.reject(falsey, function(value) { - return value == null; + var values = _.map(falsey, function(value) { + return Object(value == null ? root : value); }); var actual = _.map(values, function(value) { @@ -1659,7 +1659,7 @@ return callback(); }); - ok(_.isEqual(actual, values)); + deepEqual(actual, values); }); test('should return `identity` when `func` is `null` or `undefined`', 2, function() {