summaryrefslogtreecommitdiff
path: root/mocha_test
diff options
context:
space:
mode:
Diffstat (limited to 'mocha_test')
-rw-r--r--mocha_test/whilst.js6
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);
},