We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15bfda commit b301a7bCopy full SHA for b301a7b
test/async-hooks/test-async-await.js
@@ -64,15 +64,15 @@ const timeout = common.platformTimeout(10);
64
65
function checkPromisesInitState() {
66
for (const initState of promisesInitState.values()) {
67
- assert.strictEqual(initState, 'resolved',
68
- 'promise initialized without being resolved');
+ // Promise should not be initialized without being resolved.
+ assert.strictEqual(initState, 'resolved');
69
}
70
71
72
function checkPromisesExecutionState() {
73
for (const executionState of promisesExecutionState.values()) {
74
- assert.strictEqual(executionState, 'after',
75
- 'mismatch between before and after hook calls');
+ // Check for mismatch between before and after hook calls.
+ assert.strictEqual(executionState, 'after');
76
77
78
0 commit comments