summaryrefslogtreecommitdiff
path: root/lib/internal/createTester.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/createTester.js')
-rw-r--r--lib/internal/createTester.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/internal/createTester.js b/lib/internal/createTester.js
index 4a5d39f..5858702 100644
--- a/lib/internal/createTester.js
+++ b/lib/internal/createTester.js
@@ -1,11 +1,11 @@
-import noop from './noop';
import breakLoop from './breakLoop';
+import wrapAsync from './wrapAsync'
export default function _createTester(check, getResult) {
- return (eachfn, arr, iteratee, cb) => {
- cb = cb || noop;
+ return (eachfn, arr, _iteratee, cb) => {
var testPassed = false;
var testResult;
+ const iteratee = wrapAsync(_iteratee)
eachfn(arr, (value, _, callback) => {
iteratee(value, (err, result) => {
if (err) return callback(err)