diff options
Diffstat (limited to 'mocha_test/until.js')
-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); }, |