Skip to content

Commit

Permalink
Added test for calling transform with two arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed Mar 13, 2017
1 parent aa3fbfe commit d7bc238
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mocha_test/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,15 @@ describe('transform', function() {
done();
});
});

it('transform with two arguments', function(done) {
try {
async.transform([1, 2, 3], function (a, v, k, callback) {
callback();
});
done();
} catch (e) {
expect.fail();
}
});
});

0 comments on commit d7bc238

Please sign in to comment.