Skip to content

Commit 266f1a9

Browse files
Trotttargos
authored andcommitted
test: remove string literal from assertion
Remove string literal from `assert.strictEqual()` call `message` parameter and make it a comment above the assertion instead. 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 a5f7f1d commit 266f1a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-next-tick-domain.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ const origNextTick = process.nextTick;
2727

2828
require('domain');
2929

30-
assert.strictEqual(origNextTick, process.nextTick,
31-
'Requiring domain should not change nextTick');
30+
// Requiring domain should not change nextTick.
31+
assert.strictEqual(origNextTick, process.nextTick);

0 commit comments

Comments
 (0)