diff options
author | Alexander Early <alexander.early@gmail.com> | 2019-05-26 14:40:37 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2019-05-26 14:40:37 -0700 |
commit | cd0486e47f9f26ee1bf3e29c1523ce648cf643ce (patch) | |
tree | 08424994d3d0496e8cd0b73457684795fad9fc16 | |
parent | 92b5557be760a2e1991bac279dae573bdfd9a9bd (diff) | |
download | async-cd0486e47f9f26ee1bf3e29c1523ce648cf643ce.tar.gz |
add more variation in autoInject test
-rw-r--r-- | test/es2017/asyncFunctions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/es2017/asyncFunctions.js b/test/es2017/asyncFunctions.js index bf0d708..fc0fdf7 100644 --- a/test/es2017/asyncFunctions.js +++ b/test/es2017/asyncFunctions.js @@ -307,12 +307,12 @@ module.exports = function () { async.autoInject({ z: async function () { return 0 }, a: async function () { - return await Promise.resolve(1); + return 1; }, - b: async function (a) { - return await Promise.resolve(a + 1); + b: function (a, next) { + next(null, a + 1); }, - c: async (a, b) => { + async c(a, b) { return await Promise.resolve(a + b); }, d: async c => { |