summaryrefslogtreecommitdiff
path: root/test/es2017
diff options
context:
space:
mode:
authorAlex Early <alexander.early@gmail.com>2019-03-09 21:56:58 -0800
committerGitHub <noreply@github.com>2019-03-09 21:56:58 -0800
commitcc7a84ffedba2c326668f604384d730cc09fd8e6 (patch)
treefdb2bd2987cb93ac43e4e76a1e5417dc48694298 /test/es2017
parentb418cb788f1a57bd34e43ac2a72768e0f3561d36 (diff)
downloadasync-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.js5
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);
})
});