diff options
Diffstat (limited to 'cli/tests/node_compat/test/internet')
3 files changed, 15 insertions, 15 deletions
diff --git a/cli/tests/node_compat/test/internet/test-dns-idna2008.js b/cli/tests/node_compat/test/internet/test-dns-idna2008.js index ea7dfe5d7..7308f9deb 100644 --- a/cli/tests/node_compat/test/internet/test-dns-idna2008.js +++ b/cli/tests/node_compat/test/internet/test-dns-idna2008.js @@ -41,7 +41,7 @@ dns.lookup( } assert.ifError(err); assert.strictEqual(address, fixture.expectedAddress); - }) + }), ); dns.promises.lookup(fixture.hostname, { family: fixture.family }) diff --git a/cli/tests/node_compat/test/internet/test-dns-lookup.js b/cli/tests/node_compat/test/internet/test-dns-lookup.js index 2e33800d8..cfd3e758c 100644 --- a/cli/tests/node_compat/test/internet/test-dns-lookup.js +++ b/cli/tests/node_compat/test/internet/test-dns-lookup.js @@ -18,35 +18,35 @@ assert.rejects( dnsPromises.lookup(addresses.NOT_FOUND, { hints: 0, family: 0, - all: false + all: false, }), { code: 'ENOTFOUND', - message: `getaddrinfo ENOTFOUND ${addresses.NOT_FOUND}` - } + message: `getaddrinfo ENOTFOUND ${addresses.NOT_FOUND}`, + }, ); assert.rejects( dnsPromises.lookup(addresses.NOT_FOUND, { hints: 0, family: 0, - all: true + all: true, }), { code: 'ENOTFOUND', - message: `getaddrinfo ENOTFOUND ${addresses.NOT_FOUND}` - } + message: `getaddrinfo ENOTFOUND ${addresses.NOT_FOUND}`, + }, ); dns.lookup(addresses.NOT_FOUND, { hints: 0, family: 0, - all: true + all: true, }, common.mustCall((error) => { assert.strictEqual(error.code, 'ENOTFOUND'); assert.strictEqual( error.message, - `getaddrinfo ENOTFOUND ${addresses.NOT_FOUND}` + `getaddrinfo ENOTFOUND ${addresses.NOT_FOUND}`, ); assert.strictEqual(error.syscall, 'getaddrinfo'); assert.strictEqual(error.hostname, addresses.NOT_FOUND); @@ -55,7 +55,7 @@ dns.lookup(addresses.NOT_FOUND, { assert.throws( () => dnsPromises.lookup(addresses.NOT_FOUND, { family: 'ipv4', - all: 'all' + all: 'all', }), - { code: 'ERR_INVALID_ARG_VALUE' } + { code: 'ERR_INVALID_ARG_VALUE' }, ); diff --git a/cli/tests/node_compat/test/internet/test-dns-promises-resolve.js b/cli/tests/node_compat/test/internet/test-dns-promises-resolve.js index b1595ec43..e4ee5f782 100644 --- a/cli/tests/node_compat/test/internet/test-dns-promises-resolve.js +++ b/cli/tests/node_compat/test/internet/test-dns-promises-resolve.js @@ -19,8 +19,8 @@ const dnsPromises = require('dns').promises; { code: 'ERR_INVALID_ARG_VALUE', name: 'TypeError', - message: `The argument 'rrtype' is invalid. Received '${rrtype}'` - } + message: `The argument 'rrtype' is invalid. Received '${rrtype}'`, + }, ); } @@ -33,8 +33,8 @@ const dnsPromises = require('dns').promises; code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError', message: 'The "rrtype" argument must be of type string. ' + - `Received type ${typeof rrtype} (${rrtype})` - } + `Received type ${typeof rrtype} (${rrtype})`, + }, ); } |
