summaryrefslogtreecommitdiff
path: root/mocha_test/auto.js
diff options
context:
space:
mode:
Diffstat (limited to 'mocha_test/auto.js')
-rw-r--r--mocha_test/auto.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/mocha_test/auto.js b/mocha_test/auto.js
index 49fac6a..19ffac4 100644
--- a/mocha_test/auto.js
+++ b/mocha_test/auto.js
@@ -366,6 +366,18 @@ describe('auto', function () {
}).to.throw();
});
+ it('should handle array tasks with just a function', function (done) {
+ async.auto({
+ a: [function (cb) {
+ cb(null, 1);
+ }],
+ b: ["a", function (results, cb) {
+ expect(results.a).to.equal(1);
+ cb();
+ }]
+ }, done)
+ });
+
it("should avoid unncecessary deferrals", function (done) {
var isSync = true;