Skip to content

Commit d12e2f6

Browse files
committed
test: remove string literal from assertion
Remove string literal as assertion message in call to assert.strictEqual() in test-dns-lookup. 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 2a5e0eb commit d12e2f6

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
@@ -136,8 +136,8 @@ dns.lookup('example.com', common.mustCall((error, result, addressType) => {
136136
assert.strictEqual(tickValue, 1);
137137
assert.strictEqual(error.code, 'ENOENT');
138138
const descriptor = Object.getOwnPropertyDescriptor(error, 'message');
139-
assert.strictEqual(descriptor.enumerable,
140-
false, 'The error message should be non-enumerable');
139+
// The error message should be non-enumerable.
140+
assert.strictEqual(descriptor.enumerable, false);
141141
}));
142142

143143
// Make sure that the error callback is called

0 commit comments

Comments
 (0)