test: show incorrect value on test failure

PR-URL: https://github.com/nodejs/node/pull/16818
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
This commit is contained in:
Sean Karson authored and Myles Borins committed 2017-11-16 18:17:57 -05:00
1 parent 2bbc76eb1f
commit 0ebded4376
1 file changed
+1 -1
@@ -16,7 +16,7 @@ hooks.enable();
p.then(function afterresolution(val) {
assert.strictEqual(val, 5);
const as = hooks.activitiesOfTypes('PROMISE');
assert.strictEqual(as.length, 1, 'one activity');
assert.strictEqual(as.length, 1);
checkInvocations(as[0], { init: 1, before: 1 },
'after resolution child promise');
return val;