mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Add null and undefined values tests for thisArg.
This commit is contained in:
@@ -1650,8 +1650,8 @@
|
|||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
test('should create a callback with a falsey `thisArg`', 1, function() {
|
test('should create a callback with a falsey `thisArg`', 1, function() {
|
||||||
var values = _.reject(falsey, function(value) {
|
var values = _.map(falsey, function(value) {
|
||||||
return value == null;
|
return Object(value == null ? root : value);
|
||||||
});
|
});
|
||||||
|
|
||||||
var actual = _.map(values, function(value) {
|
var actual = _.map(values, function(value) {
|
||||||
@@ -1659,7 +1659,7 @@
|
|||||||
return callback();
|
return callback();
|
||||||
});
|
});
|
||||||
|
|
||||||
ok(_.isEqual(actual, values));
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user