diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-07-09 18:24:43 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-07-09 18:24:43 -0700 |
commit | a16b450c182199a5b268662af64478060a5bfa97 (patch) | |
tree | 904c93d751f1a84939a1544280a8cbe9d9cbc183 | |
parent | 606e807cf06e2e912d0af910fcfd49af3d4461a2 (diff) | |
download | async-a16b450c182199a5b268662af64478060a5bfa97.tar.gz |
sorted out until's test args
-rw-r--r-- | mocha_test/until.js | 6 |
1 files 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); }, |