Skip to content
Closed
Prev Previous commit
Next Next commit
test: remove string literal from assertion
Remove string literal as assertion message in call to
assert.strictEqual() in test-dns-resolveany-bad-ancount.
  • Loading branch information
Trott committed Sep 13, 2018
commit af1f7c762af2b30893295565d1aa203dfd65de67
4 changes: 2 additions & 2 deletions test/parallel/test-dns-resolveany-bad-ancount.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}));
}));