mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Prevent test fails for the npm build.
This commit is contained in:
27
test/test.js
27
test/test.js
@@ -10399,18 +10399,23 @@
|
|||||||
function callback() {
|
function callback() {
|
||||||
actual = this;
|
actual = this;
|
||||||
}
|
}
|
||||||
if (/^reduce/.test(methodName) || methodName == 'transform') {
|
if (func) {
|
||||||
func(array, callback, 0, null);
|
if (/^reduce/.test(methodName) || methodName == 'transform') {
|
||||||
} else if (_.contains(['assign', 'merge'], methodName)) {
|
func(array, callback, 0, null);
|
||||||
func(array, array, callback, null);
|
} else if (_.contains(['assign', 'merge'], methodName)) {
|
||||||
} else if (_.contains(['isEqual', 'sortedIndex'], methodName)) {
|
func(array, array, callback, null);
|
||||||
func(array, 'a', callback, null);
|
} else if (_.contains(['isEqual', 'sortedIndex'], methodName)) {
|
||||||
} else if (methodName == 'times') {
|
func(array, 'a', callback, null);
|
||||||
func(1, callback, null);
|
} else if (methodName == 'times') {
|
||||||
} else {
|
func(1, callback, null);
|
||||||
func(array, callback, null);
|
} else {
|
||||||
|
func(array, callback, null);
|
||||||
|
}
|
||||||
|
strictEqual(actual, expected, message);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipTest();
|
||||||
}
|
}
|
||||||
strictEqual(actual, expected, message);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user