Skip to content

Commit c744ab6

Browse files
author
Ilya Shatokhin
committed
Added test for auto with concurrency but without callback.
1 parent 3803e08 commit c744ab6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/test-async.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ exports['auto results'] = function(test){
426426
});
427427
};
428428

429-
430429
exports['auto empty object'] = function(test){
431430
async.auto({}, function(err){
432431
test.ok(err === null, err + " passed instead of 'null'");
@@ -461,6 +460,13 @@ exports['auto no callback'] = function(test){
461460
});
462461
};
463462

463+
exports['auto concurrency no callback'] = function(test){
464+
async.auto({
465+
task1: function(callback){callback();},
466+
task2: ['task1', function(callback){callback(); test.done();}]
467+
}, 1);
468+
};
469+
464470
exports['auto error should pass partial results'] = function(test) {
465471
async.auto({
466472
task1: function(callback){

0 commit comments

Comments
 (0)