Skip to content

Commit

Permalink
test: remove string literal from assertion
Browse files Browse the repository at this point in the history
Remove string literal from `assert.strictEqual()` call `message`
parameter and make it a comment above the assertion instead.

Backport-PR-URL: #22888
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]>
  • Loading branch information
Trott authored and MylesBorins committed Sep 25, 2018
1 parent 702d67f commit 976d55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-next-tick-domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ const origNextTick = process.nextTick;

require('domain');

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

0 comments on commit 976d55f

Please sign in to comment.