diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-07-09 18:21:17 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-07-09 18:21:17 -0700 |
commit | 606e807cf06e2e912d0af910fcfd49af3d4461a2 (patch) | |
tree | 8419cd10baf2cf88e93c217390d88d284b9c7e97 /mocha_test | |
parent | cf62c0a50a9d885f2a50a2268bee78fc9007828c (diff) | |
download | async-606e807cf06e2e912d0af910fcfd49af3d4461a2.tar.gz |
sort out whilst's test args
Diffstat (limited to 'mocha_test')
-rw-r--r-- | mocha_test/whilst.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mocha_test/whilst.js b/mocha_test/whilst.js index a384916..e04c2b7 100644 --- a/mocha_test/whilst.js +++ b/mocha_test/whilst.js @@ -8,7 +8,8 @@ describe('whilst', function(){ var count = 0; async.whilst( - function () { + function (c) { + expect(c).to.equal(undefined); call_order.push(['test', count]); return (count < 5); }, @@ -57,7 +58,8 @@ describe('whilst', function(){ count++; cb(null, count); }, - function () { + function (c) { + expect(c).to.equal(count); call_order.push(['test', count]); return (count < 5); }, |