test: fix comments in test files

This commit fixes typos found in test files.

PR-URL: https://github.com/nodejs/node/pull/42536
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Daeyeon Jeong 2022-03-31 15:48:03 +09:00 committed by GitHub
parent f2a22ef179
commit 1600869eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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',

View File

@ -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);

View File

@ -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

View File

@ -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.

View File

@ -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 = '';

View File

@ -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({

View File

@ -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');