11cb0ef41Sopenharmony_ci// Flags: --expose-internals
21cb0ef41Sopenharmony_ciimport '../common/index.mjs';
31cb0ef41Sopenharmony_ciimport assert from 'assert';
41cb0ef41Sopenharmony_ciimport { lookupService } from 'dns/promises';
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciconst invalidAddress = 'fasdfdsaf';
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciassert.throws(() => {
91cb0ef41Sopenharmony_ci  lookupService(invalidAddress, 0);
101cb0ef41Sopenharmony_ci}, {
111cb0ef41Sopenharmony_ci  code: 'ERR_INVALID_ARG_VALUE',
121cb0ef41Sopenharmony_ci  name: 'TypeError',
131cb0ef41Sopenharmony_ci  message: `The argument 'address' is invalid. Received '${invalidAddress}'`
141cb0ef41Sopenharmony_ci});
15