mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Avoid strict comparison to function reference in _.callback test.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user