mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Remove extraneous test. [ci skip]
This commit is contained in:
15
test/test.js
15
test/test.js
@@ -2954,9 +2954,7 @@
|
|||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
var other = array[index];
|
var other = array[index];
|
||||||
if (other === value ||
|
if (other === value || (value instanceof Foo && other instanceof Foo)) {
|
||||||
(_.isObject(value) && other instanceof Foo) ||
|
|
||||||
(other === 'x' && /[13]/.test(value))) {
|
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3001,17 +2999,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`_.omit` should work with a custom `_.indexOf` method', 1, function() {
|
|
||||||
if (!isModularize) {
|
|
||||||
_.indexOf = custom;
|
|
||||||
deepEqual(_.omit(array, ['x']), { '0': 1, '2': 3 });
|
|
||||||
_.indexOf = indexOf;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skipTest();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
test('`_.uniq` should work with a custom `_.indexOf` method', 2, function() {
|
test('`_.uniq` should work with a custom `_.indexOf` method', 2, function() {
|
||||||
if (!isModularize) {
|
if (!isModularize) {
|
||||||
_.indexOf = custom;
|
_.indexOf = custom;
|
||||||
|
|||||||
Reference in New Issue
Block a user