mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove isStrict guards from tests.
This commit is contained in:
24
test/test.js
24
test/test.js
@@ -8851,27 +8851,17 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should return keys for custom properties on `arguments` objects', 1, function() {
|
test('`_.' + methodName + '` should return keys for custom properties on `arguments` objects', 1, function() {
|
||||||
if (!isStrict) {
|
args.a = 1;
|
||||||
args.a = 1;
|
deepEqual(func(args).sort(), ['0', '1', '2', 'a']);
|
||||||
deepEqual(func(args).sort(), ['0', '1', '2', 'a']);
|
delete args.a;
|
||||||
delete args.a;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skipTest();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should ' + (isKeys ? 'not' : '') + ' include inherited properties of `arguments` objects', 1, function() {
|
test('`_.' + methodName + '` should ' + (isKeys ? 'not' : '') + ' include inherited properties of `arguments` objects', 1, function() {
|
||||||
if (!isStrict) {
|
var expected = isKeys ? ['0', '1', '2'] : ['0', '1', '2', 'a'];
|
||||||
var expected = isKeys ? ['0', '1', '2'] : ['0', '1', '2', 'a'];
|
|
||||||
|
|
||||||
objectProto.a = 1;
|
objectProto.a = 1;
|
||||||
deepEqual(func(args).sort(), expected);
|
deepEqual(func(args).sort(), expected);
|
||||||
delete objectProto.a;
|
delete objectProto.a;
|
||||||
}
|
|
||||||
else {
|
|
||||||
skipTest();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should work with string objects', 1, function() {
|
test('`_.' + methodName + '` should work with string objects', 1, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user