Skip to content

Commit 7148776

Browse files
committed
test: update test
1 parent e5343b5 commit 7148776

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/internet/test-dns-getDefaultResultOrder.js

+11
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ assert.ok(dnsOrder === 'ipv4first');
1111
dns.setDefaultResultOrder('verbatim');
1212
dnsOrder = dns.getDefaultResultOrder();
1313
assert.ok(dnsOrder === 'verbatim');
14+
15+
{
16+
(async function() {
17+
const result = await dns.promises.lookup('localhost');
18+
const result1 = await dns.promises.lookup('localhost', { verbatim: true });
19+
assert.ok(result !== undefined);
20+
assert.ok(result1 !== undefined);
21+
assert.ok(result.address === result1.address);
22+
assert.ok(result.family === result1.family);
23+
})().then(common.mustCall());
24+
}

0 commit comments

Comments
 (0)