mirror of https://github.com/nodejs/node.git
15 lines
370 B
JavaScript
15 lines
370 B
JavaScript
// Flags: --expose-internals
|
|
import '../common/index.mjs';
|
|
import assert from 'assert';
|
|
import { lookupService } from 'dns/promises';
|
|
|
|
const invalidAddress = 'fasdfdsaf';
|
|
|
|
assert.throws(() => {
|
|
lookupService(invalidAddress, 0);
|
|
}, {
|
|
code: 'ERR_INVALID_ARG_VALUE',
|
|
name: 'TypeError',
|
|
message: `The argument 'address' is invalid. Received '${invalidAddress}'`
|
|
});
|