summaryrefslogtreecommitdiff
path: root/mocha_test/autoInject.js
diff options
context:
space:
mode:
Diffstat (limited to 'mocha_test/autoInject.js')
-rw-r--r--mocha_test/autoInject.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/mocha_test/autoInject.js b/mocha_test/autoInject.js
index b90125b..39c99a4 100644
--- a/mocha_test/autoInject.js
+++ b/mocha_test/autoInject.js
@@ -74,6 +74,18 @@ describe('autoInject', function () {
});
});
+ it('should handle array tasks with just a function', function (done) {
+ async.autoInject({
+ a: [function (cb) {
+ cb(null, 1);
+ }],
+ b: ["a", function (a, cb) {
+ expect(a).to.equal(1);
+ cb();
+ }]
+ }, done);
+ });
+
var arrowSupport = true;
try {
/* jshint -W054 */
@@ -103,5 +115,4 @@ describe('autoInject', function () {
)();
/* jshint +W061 */
}
-
});