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>
pull/16824/merge
Sean Karson 2017-11-06 15:14:16 +00:00 committed by Rich Trott
parent 79f90f3d98
commit 09c152e9b4
1 changed files with 1 additions and 1 deletions

View File

@ -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;