mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: remove string literal from assertion
Remove string literal as assertion message in call to assert.strictEqual() in test-dns-resolveany-bad-ancount. Backport-PR-URL: https://github.com/nodejs/node/pull/22912 PR-URL: https://github.com/nodejs/node/pull/22849 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
5316334955
commit
5d4cbd7fa1
1 file changed
+2
-2
@@ -40,8 +40,8 @@ server.bind(0, common.mustCall(async () => {
|
||||
assert.strictEqual(err.syscall, 'queryAny');
|
||||
assert.strictEqual(err.hostname, 'example.org');
|
||||
const descriptor = Object.getOwnPropertyDescriptor(err, 'message');
|
||||
assert.strictEqual(descriptor.enumerable,
|
||||
false, 'The error message should be non-enumerable');
|
||||
// The error message should be non-enumerable.
|
||||
assert.strictEqual(descriptor.enumerable, false);
|
||||
server.close();
|
||||
}));
|
||||
}));
|
||||
Reference in new issue
Block a user