Skip to content

Commit 5a06326

Browse files
Trotttargos
authored andcommitted
test: remove string literal from assertion
Remove string literal as assertion message in call to assert.strictEqual() in test-dns-lookup. 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 5d4cbd7 commit 5a06326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-dns-lookup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ dns.lookup('example.com', common.mustCall((error, result, addressType) => {
134134
assert.strictEqual(tickValue, 1);
135135
assert.strictEqual(error.code, 'ENOENT');
136136
const descriptor = Object.getOwnPropertyDescriptor(error, 'message');
137-
assert.strictEqual(descriptor.enumerable,
138-
false, 'The error message should be non-enumerable');
137+
// The error message should be non-enumerable.
138+
assert.strictEqual(descriptor.enumerable, false);
139139
}));
140140

141141
// Make sure that the error callback is called

0 commit comments

Comments
 (0)