diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-07-09 18:13:59 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-07-09 18:13:59 -0700 |
commit | cf62c0a50a9d885f2a50a2268bee78fc9007828c (patch) | |
tree | 1ae8910e70a11d9539d0d4d6f6774483482eb878 /mocha_test | |
parent | ca22b96ec512699dee73d252ec4f557d4cf9c31d (diff) | |
download | async-cf62c0a50a9d885f2a50a2268bee78fc9007828c.tar.gz |
sorted out during's test args
Diffstat (limited to 'mocha_test')
-rw-r--r-- | mocha_test/during.js | 7 |
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); }, |