From cf1e5b40fc0870b7539ced6d5c102fb18ccb7a59 Mon Sep 17 00:00:00 2001 From: Dean McDonnell Date: Mon, 10 Oct 2016 23:50:06 +0100 Subject: [PATCH] checking arrays of objects I don't think Arrays of objects work just checking --- test.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test.js b/test.js index 7d65f95..73e069f 100644 --- a/test.js +++ b/test.js @@ -422,3 +422,20 @@ test('each without results support with nothing to process', function (t) { t.fail('this should never happen') } }) + +test('each works with arrays of objects', function (t) { + t.plan(3) + + var instance = parallel({ results: false }) + var obj = {} + var args = [{val: true}, {val: true}] + + instance(obj, something, args, function () { + t.ok('done called') + }) + + function something (arg, cb) { + t.ok(arg.val) + cb() + } +})