diff options
author | Alex Early <alexander.early@gmail.com> | 2019-03-09 21:56:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 21:56:58 -0800 |
commit | cc7a84ffedba2c326668f604384d730cc09fd8e6 (patch) | |
tree | fdb2bd2987cb93ac43e4e76a1e5417dc48694298 /test/es2017 | |
parent | b418cb788f1a57bd34e43ac2a72768e0f3561d36 (diff) | |
download | async-cc7a84ffedba2c326668f604384d730cc09fd8e6.tar.gz |
fix: Reflect passes value on error (#1633)
* Reflects any values passed even if function has error
* fix async function tests
Diffstat (limited to 'test/es2017')
-rw-r--r-- | test/es2017/asyncFunctions.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/es2017/asyncFunctions.js b/test/es2017/asyncFunctions.js index 680725b..59c0df8 100644 --- a/test/es2017/asyncFunctions.js +++ b/test/es2017/asyncFunctions.js @@ -656,7 +656,10 @@ module.exports = function () { throw thrown; }); fn(1, (err, result) => { - expect(result).to.eql({error: thrown}); + expect(result).to.eql({ + error: thrown, + value: undefined + }); done(err); }) }); |