Skip to content

Commit 1196355

Browse files
tniessenMylesBorins
authored andcommitted
test: fix spelling in test case comments
PR-URL: #18018 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent 23b09fe commit 1196355

27 files changed

+34
-35
lines changed

test/abort/test-http-parser-consume.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ if (process.argv[2] === 'child') {
1111
const rr = get({ port: server.address().port }, common.mustCall(() => {
1212
// This bad input (0) should abort the parser and the process
1313
rr.parser.consume(0);
14-
// This line should be unreachanble.
14+
// This line should be unreachable.
1515
assert.fail('this should be unreachable');
1616
}));
1717
}));
1818
} else {
19-
// super-proces
19+
// super-process
2020
const child = spawn(process.execPath, [__filename, 'child']);
2121
child.stdout.on('data', common.mustNotCall());
2222

test/fixtures/net-fd-passing-receiver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ receiver = net.createServer(function(socket) {
2424
});
2525
});
2626

27-
/* To signal the test runne we're up and listening */
27+
/* To signal the test runner we're up and listening */
2828
receiver.on('listening', function() {
2929
console.log('ready');
3030
});

test/parallel/test-buffer-fill.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Buffer.alloc(8, '');
334334
return 0;
335335
} else {
336336
elseWasLast = true;
337-
// Once buffer.js calls the C++ implemenation of fill, return -1
337+
// Once buffer.js calls the C++ implementation of fill, return -1
338338
return -1;
339339
}
340340
}
@@ -367,7 +367,7 @@ assert.throws(() => {
367367
return 1;
368368
} else {
369369
elseWasLast = true;
370-
// Once buffer.js calls the C++ implemenation of fill, return -1
370+
// Once buffer.js calls the C++ implementation of fill, return -1
371371
return -1;
372372
}
373373
}

test/parallel/test-buffer-includes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ assert.strictEqual(
137137
);
138138

139139

140-
// test usc2 encoding
140+
// test ucs2 encoding
141141
let twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
142142

143143
assert(twoByteString.includes('\u0395', 4, 'ucs2'));

test/parallel/test-buffer-indexof.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ assert.strictEqual(511, longBufferString.lastIndexOf(pattern, 1534));
553553
// "yolo swag swag yolo swag yolo yolo swag" ..., goes on for about 5MB.
554554
// This is hard to search because it all looks similar, but never repeats.
555555

556-
// countBits returns the number of bits in the binary reprsentation of n.
556+
// countBits returns the number of bits in the binary representation of n.
557557
function countBits(n) {
558558
let count;
559559
for (count = 0; n > 0; count++) {

test/parallel/test-buffer-read.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function read(buff, funx, args, expected) {
2020

2121
}
2222

23-
// testing basic functionality of readDoubleBE() and readDOubleLE()
23+
// testing basic functionality of readDoubleBE() and readDoubleLE()
2424
read(buf, 'readDoubleBE', [1], -3.1827727774563287e+295);
2525
read(buf, 'readDoubleLE', [1], -6.966010051009108e+144);
2626

27-
// testing basic functionality of readFLoatBE() and readFloatLE()
27+
// testing basic functionality of readFloatBE() and readFloatLE()
2828
read(buf, 'readFloatBE', [1], -1.6691549692541768e+37);
2929
read(buf, 'readFloatLE', [1], -7861303808);
3030

test/parallel/test-child-process-internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (process.argv[2] === 'child') {
1111
//send non-internal message containing PREFIX at a non prefix position
1212
process.send(normal);
1313

14-
//send inernal message
14+
//send internal message
1515
process.send(internal);
1616

1717
process.exit(0);

test/parallel/test-crypto-deprecated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ common.expectWarning('DeprecationWarning', [
1414

1515
// Accessing the deprecated function is enough to trigger the warning event.
1616
// It does not need to be called. So the assert serves the purpose of both
17-
// triggering the warning event and confirming that the deprected function is
17+
// triggering the warning event and confirming that the deprecated function is
1818
// mapped to the correct non-deprecated function.
1919
assert.strictEqual(crypto.Credentials, tls.SecureContext);
2020
assert.strictEqual(crypto.createCredentials, tls.createSecureContext);

test/parallel/test-crypto-fips.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ testHelper(
9191
// to try to call the fips setter, to try to detect this situation, as
9292
// that would throw an error:
9393
// ("Error: Cannot set FIPS mode in a non-FIPS build.").
94-
// Due to this uncertanty the following tests are skipped when configured
94+
// Due to this uncertainty the following tests are skipped when configured
9595
// with --shared-openssl.
9696
if (!sharedOpenSSL()) {
9797
// OpenSSL config file should be able to turn on FIPS mode

test/parallel/test-domain-throw-error-then-throw-from-uncaught-exception-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (process.argv[2] === 'child') {
2525
// is not properly flushed in V8's Isolate::Throw right before the
2626
// process aborts due to an uncaught exception, and thus the error
2727
// message representing the error that was thrown cannot be read by the
28-
// parent process. So instead of parsing the child process' stdandard
28+
// parent process. So instead of parsing the child process' standard
2929
// error, the parent process will check that in the case
3030
// --abort-on-uncaught-exception was passed, the process did not exit
3131
// with exit code RAN_UNCAUGHT_EXCEPTION_HANDLER_EXIT_CODE.

0 commit comments

Comments
 (0)