summaryrefslogtreecommitdiff
path: root/mocha_test
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-07-09 18:13:59 -0700
committerAlexander Early <alexander.early@gmail.com>2016-07-09 18:13:59 -0700
commitcf62c0a50a9d885f2a50a2268bee78fc9007828c (patch)
tree1ae8910e70a11d9539d0d4d6f6774483482eb878 /mocha_test
parentca22b96ec512699dee73d252ec4f557d4cf9c31d (diff)
downloadasync-cf62c0a50a9d885f2a50a2268bee78fc9007828c.tar.gz
sorted out during's test args
Diffstat (limited to 'mocha_test')
-rw-r--r--mocha_test/during.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/mocha_test/during.js b/mocha_test/during.js
index 851acf1..13db8b3 100644
--- a/mocha_test/during.js
+++ b/mocha_test/during.js
@@ -16,7 +16,7 @@ describe('during', function() {
function (cb) {
call_order.push(['iteratee', count]);
count++;
- cb();
+ cb(null, count);
},
function (err) {
assert(err === null, err + " passed instead of 'null'");
@@ -42,9 +42,10 @@ describe('during', function() {
function (cb) {
call_order.push(['iteratee', count]);
count++;
- cb();
+ cb(null, count);
},
- function (cb) {
+ function (c, cb) {
+ expect(c).to.equal(count);
call_order.push(['test', count]);
cb(null, count < 5);
},