mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user