mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Fix failing tests in strict mode.
This commit is contained in:
@@ -8847,12 +8847,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should work with `arguments` objects', 1, function() {
|
test('`_.' + methodName + '` should work with `arguments` objects', 1, function() {
|
||||||
if (!isStrict) {
|
deepEqual(func(args).sort(), ['0', '1', '2']);
|
||||||
deepEqual(func(args).sort(), ['0', '1', '2']);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skipTest();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
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() {
|
||||||
@@ -16252,7 +16247,7 @@
|
|||||||
test('should return `false` for non-configurable properties', 1, function() {
|
test('should return `false` for non-configurable properties', 1, function() {
|
||||||
var object = {};
|
var object = {};
|
||||||
|
|
||||||
if (defineProperty) {
|
if (!isStrict && defineProperty) {
|
||||||
defineProperty(object, 'a', {
|
defineProperty(object, 'a', {
|
||||||
'configurable': false,
|
'configurable': false,
|
||||||
'value': 1
|
'value': 1
|
||||||
|
|||||||
Reference in New Issue
Block a user