Skip to content

Commit

Permalink
test: remove string literal message in assertions
Browse files Browse the repository at this point in the history
Remove string literal message in assert.strictEqual() calls in
test-async-await.js.

PR-URL: nodejs#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]>
  • Loading branch information
Trott committed Sep 17, 2018
1 parent 86456ba commit 2b53201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/async-hooks/test-async-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 2b53201

Please sign in to comment.