From 02a176b08106dc4e63f7e90bf7511ccbf3061e01 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Mon, 28 Mar 2022 15:45:07 +0900 Subject: [PATCH] test: fix comments in test files This pr fixes typos found in test files. --- test/common/README.md | 2 +- test/common/internet.js | 2 +- test/es-module/test-esm-loader-resolve-type.mjs | 2 +- test/parallel/test-crypto-keygen.js | 2 +- test/parallel/test-domain-thrown-error-handler-stack.js | 2 +- test/parallel/test-http-keep-alive-max-requests.js | 2 +- test/parallel/test-http2-server-stream-session-destroy.js | 2 +- test/parallel/test-stream-pipeline-listeners.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/common/README.md b/test/common/README.md index f1789c1577d8ca..858e782eb36902 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -998,7 +998,7 @@ an `emitReceived()` API for actin as if data has been received on it. `makeUDPPair` returns an object `{ clientSide, serverSide }` where each side is an `FakeUDPWrap` connected to the other side. -There is no difference between cient or server side beyond their names. +There is no difference between client or server side beyond their names. ## WPT Module diff --git a/test/common/internet.js b/test/common/internet.js index 227e979d3b8c75..0943ac96c45ec3 100644 --- a/test/common/internet.js +++ b/test/common/internet.js @@ -32,7 +32,7 @@ const addresses = { NAPTR_HOST: 'sip2sip.info', // A host with SOA records registered SOA_HOST: 'nodejs.org', - // A host with CAA record registred + // A host with CAA record registered CAA_HOST: 'google.com', // A host with CNAME records registered CNAME_HOST: 'blog.nodejs.org', diff --git a/test/es-module/test-esm-loader-resolve-type.mjs b/test/es-module/test-esm-loader-resolve-type.mjs index 913a7f40d2c551..722cf5404d25de 100644 --- a/test/es-module/test-esm-loader-resolve-type.mjs +++ b/test/es-module/test-esm-loader-resolve-type.mjs @@ -37,6 +37,6 @@ await import(`${moduleName}`).finally(() => { const { importedESM: importedESMAfter, importedCJS: importedCJSAfter } = global.getModuleTypeStats(); -// Dynamic import above should incriment ESM counter but not CJS counter +// Dynamic import above should increment ESM counter but not CJS counter assert.strictEqual(importedESMBefore + 1, importedESMAfter); assert.strictEqual(importedCJSBefore, importedCJSAfter); diff --git a/test/parallel/test-crypto-keygen.js b/test/parallel/test-crypto-keygen.js index b499087d86568a..9d03fff9d4a61b 100644 --- a/test/parallel/test-crypto-keygen.js +++ b/test/parallel/test-crypto-keygen.js @@ -117,7 +117,7 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher); { // Test sync key generation with key objects with a non-standard - // publicExpononent + // publicExponent const { publicKey, privateKey } = generateKeyPairSync('rsa', { publicExponent: 3, modulusLength: 512 diff --git a/test/parallel/test-domain-thrown-error-handler-stack.js b/test/parallel/test-domain-thrown-error-handler-stack.js index da5f6318c0fb15..a1ca2c44cdc234 100644 --- a/test/parallel/test-domain-thrown-error-handler-stack.js +++ b/test/parallel/test-domain-thrown-error-handler-stack.js @@ -3,7 +3,7 @@ const common = require('../common'); const domain = require('domain'); -// Make sure that when an erorr is thrown from a nested domain, its error +// Make sure that when an error is thrown from a nested domain, its error // handler runs outside of that domain, but within the context of any parent // domain. diff --git a/test/parallel/test-http-keep-alive-max-requests.js b/test/parallel/test-http-keep-alive-max-requests.js index 657b59ae6d9369..9412bceffb63aa 100644 --- a/test/parallel/test-http-keep-alive-max-requests.js +++ b/test/parallel/test-http-keep-alive-max-requests.js @@ -91,7 +91,7 @@ server.listen(0, common.mustCall((res) => { anotherSocket.on('ready', common.mustCall(() => { // Do another 2 requests with another socket - // enusre that this will not affect the first socket + // ensure that this will not affect the first socket initialRequests(anotherSocket, 2, common.mustCall(() => { let buffer = ''; diff --git a/test/parallel/test-http2-server-stream-session-destroy.js b/test/parallel/test-http2-server-stream-session-destroy.js index a03569cdee7825..34b22fdfbd1334 100644 --- a/test/parallel/test-http2-server-stream-session-destroy.js +++ b/test/parallel/test-http2-server-stream-session-destroy.js @@ -34,7 +34,7 @@ server.on('stream', common.mustCall((stream) => { name: 'Error' } ); - // When session is detroyed all streams are destroyed and no further + // When session is destroyed all streams are destroyed and no further // error should be emitted. stream.on('error', common.mustNotCall()); assert.strictEqual(stream.write('data', common.expectsError({ diff --git a/test/parallel/test-stream-pipeline-listeners.js b/test/parallel/test-stream-pipeline-listeners.js index c2a72fc01c8b8d..81e287b77c7589 100644 --- a/test/parallel/test-stream-pipeline-listeners.js +++ b/test/parallel/test-stream-pipeline-listeners.js @@ -8,7 +8,7 @@ process.on('uncaughtException', common.mustCall((err) => { assert.strictEqual(err.message, 'no way'); }, 2)); -// Ensure that listeners is removed if last stream is readble +// Ensure that listeners is removed if last stream is readable // And other stream's listeners unchanged const a = new PassThrough(); a.end('foobar');