0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00

test: fix typo in test

PR-URL: https://github.com/nodejs/node/pull/54137
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
Sonny 2024-08-04 16:03:24 +09:00 committed by GitHub
parent d172da8d01
commit bd42e4c6a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -125,9 +125,9 @@ module.exports.printGraph = function printGraph(hooks) {
const uidtoid = {};
const activities = pruneTickObjects(hooks.activities);
const graph = [];
activities.forEach(procesNode);
activities.forEach(processNode);
function procesNode(x) {
function processNode(x) {
const key = x.type.replace(/WRAP/, '').toLowerCase();
if (!ids[key]) ids[key] = 1;
const id = `${key}:${ids[key]++}`;

View File

@ -16,7 +16,7 @@ function testDiagnosticChannel(subscribers, test, after) {
}));
}
const testSuccessfullListen = common.mustCall(() => {
const testSuccessfulListen = common.mustCall(() => {
let cb;
const server = net.createServer(common.mustCall((socket) => {
socket.destroy();
@ -88,4 +88,4 @@ const testFailingListen = common.mustCall(() => {
});
});
testSuccessfullListen();
testSuccessfulListen();

View File

@ -68,7 +68,7 @@ test('RSA-PSS+SHA256:RSA-PSS+SHA512:ECDSA+SHA256',
// Do not have shared sigalgs.
test('RSA-PSS+SHA384', 'ECDSA+SHA256',
undefined, 'ECONNRESET', 'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITMS');
undefined, 'ECONNRESET', 'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITHMS');
test('RSA-PSS+SHA384:ECDSA+SHA256', 'ECDSA+SHA384:RSA-PSS+SHA256',
undefined, 'ECONNRESET', 'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITMS');
undefined, 'ECONNRESET', 'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITHMS');

View File

@ -8,7 +8,7 @@ const {
} = require('node:worker_threads');
const channel = new MessageChannel();
const workerData = { mesage: channel.port1 };
const workerData = { message: channel.port1 };
const transferList = [channel.port1];
const meowScript = () => 'meow';