mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Remove unnecessary phantomjs guards.
This commit is contained in:
committed by
jdalton
parent
bdbafb7a2a
commit
ce0c3c935c
25
test/test.js
25
test/test.js
@@ -6575,13 +6575,7 @@
|
|||||||
args3 = (function() { return arguments; }(1, 2));
|
args3 = (function() { return arguments; }(1, 2));
|
||||||
|
|
||||||
strictEqual(_.isEqual(args1, args2), true);
|
strictEqual(_.isEqual(args1, args2), true);
|
||||||
|
strictEqual(_.isEqual(args1, args3), false);
|
||||||
if (!isPhantom) {
|
|
||||||
strictEqual(_.isEqual(args1, args3), false);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skipTest();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should treat `arguments` objects like `Object` objects', 4, function() {
|
test('should treat `arguments` objects like `Object` objects', 4, function() {
|
||||||
@@ -6594,13 +6588,8 @@
|
|||||||
strictEqual(_.isEqual(args, object), true);
|
strictEqual(_.isEqual(args, object), true);
|
||||||
strictEqual(_.isEqual(object, args), true);
|
strictEqual(_.isEqual(object, args), true);
|
||||||
|
|
||||||
if (!isPhantom) {
|
strictEqual(_.isEqual(args, new Foo), false);
|
||||||
strictEqual(_.isEqual(args, new Foo), false);
|
strictEqual(_.isEqual(new Foo, args), false);
|
||||||
strictEqual(_.isEqual(new Foo, args), false);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skipTest(2);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should perform comparisons between date objects', 4, function() {
|
test('should perform comparisons between date objects', 4, function() {
|
||||||
@@ -13244,8 +13233,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var actual = _.map(typedArrays, function(type) {
|
var actual = _.map(typedArrays, function(type) {
|
||||||
var Ctor = root[type];
|
var Ctor = root[type],
|
||||||
return Ctor ? _.toPlainObject(new Ctor(buffer)) : false;
|
result = Ctor ? _.toPlainObject(new Ctor(buffer)) : false;
|
||||||
|
|
||||||
|
return _.isPlainObject(result)
|
||||||
|
? _.omit(result, 'BYTES_PER_ELEMENT', 'byteLength', 'byteOffset', 'buffer', 'get', 'length', 'subarray', 'set', 'slice')
|
||||||
|
: result;
|
||||||
});
|
});
|
||||||
|
|
||||||
deepEqual(actual, expected);
|
deepEqual(actual, expected);
|
||||||
|
|||||||
Reference in New Issue
Block a user