From a16b450c182199a5b268662af64478060a5bfa97 Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Sat, 9 Jul 2016 18:24:43 -0700 Subject: sorted out until's test args --- mocha_test/until.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mocha_test/until.js b/mocha_test/until.js index a738218..e98b184 100644 --- a/mocha_test/until.js +++ b/mocha_test/until.js @@ -7,7 +7,8 @@ describe('until', function(){ var call_order = []; var count = 0; async.until( - function () { + function (c) { + expect(c).to.equal(undefined); call_order.push(['test', count]); return (count == 5); }, @@ -42,7 +43,8 @@ describe('until', function(){ count++; cb(null, count); }, - function () { + function (c) { + expect(c).to.equal(count); call_order.push(['test', count]); return (count == 5); }, -- cgit v1.2.1