mirror of https://github.com/nodejs/node.git
16 lines
446 B
JavaScript
16 lines
446 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const dns = require('dns');
|
|
const dnsPromises = dns.promises;
|
|
|
|
(async function() {
|
|
const result = await dnsPromises.resolveTxt('www.microsoft.com');
|
|
assert.strictEqual(result.length, 0);
|
|
})().then(common.mustCall());
|
|
|
|
dns.resolveTxt('www.microsoft.com', function(err, records) {
|
|
assert.strictEqual(err, null);
|
|
assert.strictEqual(records.length, 0);
|
|
});
|