Skip to content

Commit b301a7b

Browse files
Trotttargos
authored andcommitted
test: remove string literal message in assertions
Remove string literal message in assert.strictEqual() calls in test-async-await.js. Backport-PR-URL: #22912 PR-URL: #22849 Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent a15bfda commit b301a7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/async-hooks/test-async-await.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ const timeout = common.platformTimeout(10);
6464

6565
function checkPromisesInitState() {
6666
for (const initState of promisesInitState.values()) {
67-
assert.strictEqual(initState, 'resolved',
68-
'promise initialized without being resolved');
67+
// Promise should not be initialized without being resolved.
68+
assert.strictEqual(initState, 'resolved');
6969
}
7070
}
7171

7272
function checkPromisesExecutionState() {
7373
for (const executionState of promisesExecutionState.values()) {
74-
assert.strictEqual(executionState, 'after',
75-
'mismatch between before and after hook calls');
74+
// Check for mismatch between before and after hook calls.
75+
assert.strictEqual(executionState, 'after');
7676
}
7777
}
7878

0 commit comments

Comments
 (0)