mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Avoid false fail in environments that add an enumerable constructor property to Date objects.
This commit is contained in:
@@ -5209,7 +5209,7 @@
|
||||
(function() {
|
||||
var args = arguments;
|
||||
|
||||
test('should return `true` for empty or falsey values', 8, function() {
|
||||
test('should return `true` for empty or falsey values', 7, function() {
|
||||
var expected = _.map(empties, _.constant(true));
|
||||
|
||||
var actual = _.map(empties, function(value) {
|
||||
@@ -5219,7 +5219,6 @@
|
||||
deepEqual(actual, expected);
|
||||
|
||||
strictEqual(_.isEmpty(true), true);
|
||||
strictEqual(_.isEmpty(new Date), true);
|
||||
strictEqual(_.isEmpty(slice), true);
|
||||
strictEqual(_.isEmpty(1), true);
|
||||
strictEqual(_.isEmpty(NaN), true);
|
||||
|
||||
Reference in New Issue
Block a user