Skip to content

Commit 2a5e0eb

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-dns-resolveany-bad-ancount.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ server.bind(0, common.mustCall(async () => {
4040
assert.strictEqual(err.syscall, 'queryAny');
4141
assert.strictEqual(err.hostname, 'example.org');
4242
const descriptor = Object.getOwnPropertyDescriptor(err, 'message');
43-
assert.strictEqual(descriptor.enumerable,
44-
false, 'The error message should be non-enumerable');
43+
// The error message should be non-enumerable.
44+
assert.strictEqual(descriptor.enumerable, false);
4545
server.close();
4646
}));
4747
}));

0 commit comments

Comments
 (0)