mirror of https://github.com/nodejs/node.git
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
parent
79f90f3d98
commit
09c152e9b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue