diff options
Diffstat (limited to 'test/each.js')
-rw-r--r-- | test/each.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/each.js b/test/each.js index eb12842..7b83476 100644 --- a/test/each.js +++ b/test/each.js @@ -96,6 +96,15 @@ describe("each", () => { async.each([1], eachNoCallbackIteratee.bind(this, done)); }); + it('each no callback', async (done) => { + try { + async.each([1], 'INVALID_CALL_BACK', () => {}); + } catch(err) { + expect(err.message).to.equal('expected a function') + done() + } + }); + it('eachSeries', function(done) { var args = []; async.eachSeries([1,3,2], eachIteratee.bind(this, args), (err) => { |