Skip to content

Commit 8bb04f5

Browse files
daeyeonjuanarbol
authored andcommitted
test: fix typos in test/parallel
This pr fixes typos in some parallel tests. PR-URL: #42502 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b756ed8 commit 8bb04f5

5 files changed

+9
-9
lines changed

test/parallel/test-fs-symlink-longpath.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ const longPath = path.join(...[tmpDir].concat(Array(30).fill('1234567890')));
1212
fs.mkdirSync(longPath, { recursive: true });
1313

1414
// Test if we can have symlinks to files and folders with long filenames
15-
const targetDirtectory = path.join(longPath, 'target-directory');
16-
fs.mkdirSync(targetDirtectory);
15+
const targetDirectory = path.join(longPath, 'target-directory');
16+
fs.mkdirSync(targetDirectory);
1717
const pathDirectory = path.join(tmpDir, 'new-directory');
18-
fs.symlink(targetDirtectory, pathDirectory, 'dir', common.mustSucceed(() => {
18+
fs.symlink(targetDirectory, pathDirectory, 'dir', common.mustSucceed(() => {
1919
assert(fs.existsSync(pathDirectory));
2020
}));
2121

test/parallel/test-net-socket-timeout.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ for (let i = 0; i < validDelays.length; i++) {
5454
}
5555

5656
for (let i = 0; i < invalidCallbacks.length; i++) {
57-
[0, 1].forEach((mesc) =>
57+
[0, 1].forEach((msec) =>
5858
assert.throws(
59-
() => s.setTimeout(mesc, invalidCallbacks[i]),
59+
() => s.setTimeout(msec, invalidCallbacks[i]),
6060
{
6161
code: 'ERR_INVALID_CALLBACK',
6262
name: 'TypeError',

test/parallel/test-queue-microtask-uncaught-asynchooks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let µtaskId;
1111
const events = [];
1212

1313
async_hooks.createHook({
14-
init(id, type, triggerId, resoure) {
14+
init(id, type, triggerId, resource) {
1515
if (type === 'Microtask') {
1616
µtaskId = id;
1717
events.push('init');

test/parallel/test-stream-duplex-from.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ const { Blob } = require('buffer');
155155
// Ensure that Duplex.from works for blobs
156156
{
157157
const blob = new Blob(['blob']);
158-
const expecteByteLength = blob.size;
158+
const expectedByteLength = blob.size;
159159
const duplex = Duplex.from(blob);
160160
duplex.on('data', common.mustCall((arrayBuffer) => {
161-
assert.strictEqual(arrayBuffer.byteLength, expecteByteLength);
161+
assert.strictEqual(arrayBuffer.byteLength, expectedByteLength);
162162
}));
163163
}
164164

test/parallel/test-stream-writable-change-default-encoding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ assert.throws(() => {
6868
message: 'Unknown encoding: {}'
6969
});
7070

71-
(function checkVairableCaseEncoding() {
71+
(function checkVariableCaseEncoding() {
7272
const m = new MyWritable(function(isBuffer, type, enc) {
7373
assert.strictEqual(enc, 'ascii');
7474
}, { decodeStrings: false });

0 commit comments

Comments
 (0)