diff --git a/test/test.js b/test/test.js index 5b6fcad80..14624c783 100644 --- a/test/test.js +++ b/test/test.js @@ -10399,18 +10399,23 @@ function callback() { actual = this; } - if (/^reduce/.test(methodName) || methodName == 'transform') { - func(array, callback, 0, null); - } else if (_.contains(['assign', 'merge'], methodName)) { - func(array, array, callback, null); - } else if (_.contains(['isEqual', 'sortedIndex'], methodName)) { - func(array, 'a', callback, null); - } else if (methodName == 'times') { - func(1, callback, null); - } else { - func(array, callback, null); + if (func) { + if (/^reduce/.test(methodName) || methodName == 'transform') { + func(array, callback, 0, null); + } else if (_.contains(['assign', 'merge'], methodName)) { + func(array, array, callback, null); + } else if (_.contains(['isEqual', 'sortedIndex'], methodName)) { + func(array, 'a', callback, null); + } else if (methodName == 'times') { + func(1, callback, null); + } else { + func(array, callback, null); + } + strictEqual(actual, expected, message); + } + else { + skipTest(); } - strictEqual(actual, expected, message); }); });