• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3require('../common');
4const assert = require('assert');
5const dnsPromises = require('dns/promises');
6const dns = require('dns');
7
8assert.strictEqual(dnsPromises, dns.promises);
9
10assert.strictEqual(dnsPromises.NODATA, dns.NODATA);
11assert.strictEqual(dnsPromises.FORMERR, dns.FORMERR);
12assert.strictEqual(dnsPromises.SERVFAIL, dns.SERVFAIL);
13assert.strictEqual(dnsPromises.NOTFOUND, dns.NOTFOUND);
14assert.strictEqual(dnsPromises.NOTIMP, dns.NOTIMP);
15assert.strictEqual(dnsPromises.REFUSED, dns.REFUSED);
16assert.strictEqual(dnsPromises.BADQUERY, dns.BADQUERY);
17assert.strictEqual(dnsPromises.BADNAME, dns.BADNAME);
18assert.strictEqual(dnsPromises.BADFAMILY, dns.BADFAMILY);
19assert.strictEqual(dnsPromises.BADRESP, dns.BADRESP);
20assert.strictEqual(dnsPromises.CONNREFUSED, dns.CONNREFUSED);
21assert.strictEqual(dnsPromises.TIMEOUT, dns.TIMEOUT);
22assert.strictEqual(dnsPromises.EOF, dns.EOF);
23assert.strictEqual(dnsPromises.FILE, dns.FILE);
24assert.strictEqual(dnsPromises.NOMEM, dns.NOMEM);
25assert.strictEqual(dnsPromises.DESTRUCTION, dns.DESTRUCTION);
26assert.strictEqual(dnsPromises.BADSTR, dns.BADSTR);
27assert.strictEqual(dnsPromises.BADFLAGS, dns.BADFLAGS);
28assert.strictEqual(dnsPromises.NONAME, dns.NONAME);
29assert.strictEqual(dnsPromises.BADHINTS, dns.BADHINTS);
30assert.strictEqual(dnsPromises.NOTINITIALIZED, dns.NOTINITIALIZED);
31assert.strictEqual(dnsPromises.LOADIPHLPAPI, dns.LOADIPHLPAPI);
32assert.strictEqual(dnsPromises.ADDRGETNETWORKPARAMS, dns.ADDRGETNETWORKPARAMS);
33assert.strictEqual(dnsPromises.CANCELLED, dns.CANCELLED);
34