Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Mar 9, 2023
1 parent e5343b5 commit 7148776
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/internet/test-dns-getDefaultResultOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ assert.ok(dnsOrder === 'ipv4first');
dns.setDefaultResultOrder('verbatim');
dnsOrder = dns.getDefaultResultOrder();
assert.ok(dnsOrder === 'verbatim');

{
(async function() {
const result = await dns.promises.lookup('localhost');
const result1 = await dns.promises.lookup('localhost', { verbatim: true });
assert.ok(result !== undefined);
assert.ok(result1 !== undefined);
assert.ok(result.address === result1.address);
assert.ok(result.family === result1.family);
})().then(common.mustCall());
}

0 comments on commit 7148776

Please sign in to comment.