Skip to content

Commit 37ad634

Browse files
daeyeonjuanarbol
authored andcommitted
test: fix comments in test files
This commit fixes typos found in test files. PR-URL: #42536 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 899de04 commit 37ad634

7 files changed

+7
-7
lines changed

test/common/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ an `emitReceived()` API for actin as if data has been received on it.
998998
`makeUDPPair` returns an object `{ clientSide, serverSide }` where each side
999999
is an `FakeUDPWrap` connected to the other side.
10001000

1001-
There is no difference between cient or server side beyond their names.
1001+
There is no difference between client or server side beyond their names.
10021002

10031003
## WPT Module
10041004

test/common/internet.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const addresses = {
3232
NAPTR_HOST: 'sip2sip.info',
3333
// A host with SOA records registered
3434
SOA_HOST: 'nodejs.org',
35-
// A host with CAA record registred
35+
// A host with CAA record registered
3636
CAA_HOST: 'google.com',
3737
// A host with CNAME records registered
3838
CNAME_HOST: 'blog.nodejs.org',

test/es-module/test-esm-loader-resolve-type.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ await import(`${moduleName}`).finally(() => {
3737
const { importedESM: importedESMAfter,
3838
importedCJS: importedCJSAfter } = global.getModuleTypeStats();
3939

40-
// Dynamic import above should incriment ESM counter but not CJS counter
40+
// Dynamic import above should increment ESM counter but not CJS counter
4141
assert.strictEqual(importedESMBefore + 1, importedESMAfter);
4242
assert.strictEqual(importedCJSBefore, importedCJSAfter);

test/parallel/test-crypto-keygen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
117117

118118
{
119119
// Test sync key generation with key objects with a non-standard
120-
// publicExpononent
120+
// publicExponent
121121
const { publicKey, privateKey } = generateKeyPairSync('rsa', {
122122
publicExponent: 3,
123123
modulusLength: 512

test/parallel/test-domain-thrown-error-handler-stack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const common = require('../common');
44
const domain = require('domain');
55

6-
// Make sure that when an erorr is thrown from a nested domain, its error
6+
// Make sure that when an error is thrown from a nested domain, its error
77
// handler runs outside of that domain, but within the context of any parent
88
// domain.
99

test/parallel/test-http-keep-alive-max-requests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ server.listen(0, common.mustCall((res) => {
9191

9292
anotherSocket.on('ready', common.mustCall(() => {
9393
// Do another 2 requests with another socket
94-
// enusre that this will not affect the first socket
94+
// ensure that this will not affect the first socket
9595
initialRequests(anotherSocket, 2, common.mustCall(() => {
9696
let buffer = '';
9797

test/parallel/test-http2-server-stream-session-destroy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ server.on('stream', common.mustCall((stream) => {
3434
name: 'Error'
3535
}
3636
);
37-
// When session is detroyed all streams are destroyed and no further
37+
// When session is destroyed all streams are destroyed and no further
3838
// error should be emitted.
3939
stream.on('error', common.mustNotCall());
4040
assert.strictEqual(stream.write('data', common.expectsError({

0 commit comments

Comments
 (0)