summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mocha_test/until.js6
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);
},