summaryrefslogtreecommitdiff
path: root/test/parallel/test-dns-regress-7070.js
blob: eb939b47559a9d2bf1c543963e59d3261f6939bd (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';
require('../common');
const assert = require('assert');
const dns = require('dns');

// Should not raise assertion error. Issue #7070
assert.throws(() => dns.resolveNs([]), // bad name
              /^Error: "name" argument must be a string$/);
assert.throws(() => dns.resolveNs(''), // bad callback
              /^Error: "callback" argument must be a function$/);