summaryrefslogtreecommitdiff
path: root/test/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/map.js')
-rw-r--r--test/map.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/map.js b/test/map.js
index c7f5030..eb0c3ea 100644
--- a/test/map.js
+++ b/test/map.js
@@ -224,15 +224,15 @@ describe("map", function() {
});
});
- it('mapLimit zero limit', function(done) {
- async.mapLimit([0, 1, 2, 3, 4, 5], 0, function(x, callback) {
- assert(false, 'iteratee should not be called');
- callback();
- }, function(err, results) {
- expect(results).to.eql([]);
- assert(true, 'should call callback');
- });
- setTimeout(done, 25);
+ it('mapLimit zero limit', function() {
+ expect(() => {
+ async.mapLimit([0, 1, 2, 3, 4, 5], 0, function(x, callback) {
+ assert(false, 'iteratee should not be called');
+ callback();
+ }, function() {
+ assert(false, 'should not be called');
+ });
+ }).to.throw(/concurrency limit/)
});
it('mapLimit error', function(done) {