1// Flags: --expose-internals 2import '../common/index.mjs'; 3import assert from 'assert'; 4import { lookupService } from 'dns/promises'; 5 6const invalidAddress = 'fasdfdsaf'; 7 8assert.throws(() => { 9 lookupService(invalidAddress, 0); 10}, { 11 code: 'ERR_INVALID_ARG_VALUE', 12 name: 'TypeError', 13 message: `The argument 'address' is invalid. Received '${invalidAddress}'` 14}); 15