Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix typos in test/parallel #42502

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/parallel/test-fs-symlink-longpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const longPath = path.join(...[tmpDir].concat(Array(30).fill('1234567890')));
fs.mkdirSync(longPath, { recursive: true });

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

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-net-socket-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ for (let i = 0; i < validDelays.length; i++) {
}

for (let i = 0; i < invalidCallbacks.length; i++) {
[0, 1].forEach((mesc) =>
[0, 1].forEach((msec) =>
assert.throws(
() => s.setTimeout(mesc, invalidCallbacks[i]),
() => s.setTimeout(msec, invalidCallbacks[i]),
{
code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError',
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-queue-microtask-uncaught-asynchooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let µtaskId;
const events = [];

async_hooks.createHook({
init(id, type, triggerId, resoure) {
init(id, type, triggerId, resource) {
if (type === 'Microtask') {
µtaskId = id;
events.push('init');
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-stream-duplex-from.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ const { Blob } = require('buffer');
// Ensure that Duplex.from works for blobs
{
const blob = new Blob(['blob']);
const expecteByteLength = blob.size;
const expectedByteLength = blob.size;
const duplex = Duplex.from(blob);
duplex.on('data', common.mustCall((arrayBuffer) => {
assert.strictEqual(arrayBuffer.byteLength, expecteByteLength);
assert.strictEqual(arrayBuffer.byteLength, expectedByteLength);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ assert.throws(() => {
message: 'Unknown encoding: {}'
});

(function checkVairableCaseEncoding() {
(function checkVariableCaseEncoding() {
const m = new MyWritable(function(isBuffer, type, enc) {
assert.strictEqual(enc, 'ascii');
}, { decodeStrings: false });
Expand Down