diff options
author | Steve Robb <softnfuzzyrobb@gmail.com> | 2016-04-25 07:46:04 +0100 |
---|---|---|
committer | Steve Robb <softnfuzzyrobb@gmail.com> | 2016-04-25 07:46:04 +0100 |
commit | ba176c0e8ca3e257a75ab22cb3ecc020833a19be (patch) | |
tree | d1fb25a5e2b32fd792c352fddb2859e1850c1c91 /mocha_test | |
parent | e69e0a1d27abb98ad6c74d47f091d67bc26b1423 (diff) | |
download | async-ba176c0e8ca3e257a75ab22cb3ecc020833a19be.tar.gz |
Arrow function support in ES6.
Diffstat (limited to 'mocha_test')
-rw-r--r-- | mocha_test/autoInject.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mocha_test/autoInject.js b/mocha_test/autoInject.js index 1408af9..8715a70 100644 --- a/mocha_test/autoInject.js +++ b/mocha_test/autoInject.js @@ -92,4 +92,17 @@ describe('autoInject', function () { }]); }); + // Needs to be run on ES6 only - not sure how you plan to handle this +// it('should work with es6 arrow syntax', function (done) { +// async.autoInject({ +// task1: (cb) => cb(null, 1), +// task2: (task3, cb) => cb(null, 2), +// task3: cb => cb(null, 3) +// }, (err, task3, task1) => { +// expect(task1).to.equal(1); +// expect(task3).to.equal(3); +// done(); +// }); +// }); + }); |