diff options
author | Ilya Shatokhin <ilyas@local.pushok.com> | 2015-12-03 09:48:37 -0200 |
---|---|---|
committer | Ilya Shatokhin <ilyas@local.pushok.com> | 2015-12-03 09:48:37 -0200 |
commit | c744ab6ac21971b806073f44ab51e150f23bfd2b (patch) | |
tree | 43e88b37c041517be88dc0130c6d6ee4bf71810f | |
parent | 3803e0892e6ea9c0372ccdd7467d703922c0cf50 (diff) | |
download | async-c744ab6ac21971b806073f44ab51e150f23bfd2b.tar.gz |
Added test for auto with concurrency but without callback.
-rwxr-xr-x | test/test-async.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test-async.js b/test/test-async.js index 6cce049..ee0b950 100755 --- a/test/test-async.js +++ b/test/test-async.js @@ -426,7 +426,6 @@ exports['auto results'] = function(test){ }); }; - exports['auto empty object'] = function(test){ async.auto({}, function(err){ test.ok(err === null, err + " passed instead of 'null'"); @@ -461,6 +460,13 @@ exports['auto no callback'] = function(test){ }); }; +exports['auto concurrency no callback'] = function(test){ + async.auto({ + task1: function(callback){callback();}, + task2: ['task1', function(callback){callback(); test.done();}] + }, 1); +}; + exports['auto error should pass partial results'] = function(test) { async.auto({ task1: function(callback){ |