test: remove string literal message in assertions
Remove string literal message in assert.strictEqual() calls in test-async-await.js. PR-URL: https://github.com/nodejs/node/pull/22849 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
86456bacd8
commit
2b5320130b
@ -64,15 +64,15 @@ const timeout = common.platformTimeout(10);
|
||||
|
||||
function checkPromisesInitState() {
|
||||
for (const initState of promisesInitState.values()) {
|
||||
assert.strictEqual(initState, 'resolved',
|
||||
'promise initialized without being resolved');
|
||||
// Promise should not be initialized without being resolved.
|
||||
assert.strictEqual(initState, 'resolved');
|
||||
}
|
||||
}
|
||||
|
||||
function checkPromisesExecutionState() {
|
||||
for (const executionState of promisesExecutionState.values()) {
|
||||
assert.strictEqual(executionState, 'after',
|
||||
'mismatch between before and after hook calls');
|
||||
// Check for mismatch between before and after hook calls.
|
||||
assert.strictEqual(executionState, 'after');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user