summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Shatokhin <ilyas@local.pushok.com>2015-12-03 09:48:37 -0200
committerIlya Shatokhin <ilyas@local.pushok.com>2015-12-03 09:48:37 -0200
commitc744ab6ac21971b806073f44ab51e150f23bfd2b (patch)
tree43e88b37c041517be88dc0130c6d6ee4bf71810f
parent3803e0892e6ea9c0372ccdd7467d703922c0cf50 (diff)
downloadasync-c744ab6ac21971b806073f44ab51e150f23bfd2b.tar.gz
Added test for auto with concurrency but without callback.
-rwxr-xr-xtest/test-async.js8
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){