From dbc26c29714571be3b5439658a0a2a1201c230bd Mon Sep 17 00:00:00 2001 From: Sonny <47546413+sonsurim@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:03:24 +0900 Subject: [PATCH] test: fix typo in test PR-URL: https://github.com/nodejs/node/pull/54137 Reviewed-By: Luigi Pinca Reviewed-By: Harshitha K P Reviewed-By: Jake Yuesong Li --- test/async-hooks/verify-graph.js | 4 ++-- test/parallel/test-diagnostics-channel-net.js | 4 ++-- test/parallel/test-tls-set-sigalgs.js | 4 ++-- test/parallel/test-worker-workerdata-messageport.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/async-hooks/verify-graph.js b/test/async-hooks/verify-graph.js index bb55f61867fdf6..27cd4633920a3c 100644 --- a/test/async-hooks/verify-graph.js +++ b/test/async-hooks/verify-graph.js @@ -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]++}`; diff --git a/test/parallel/test-diagnostics-channel-net.js b/test/parallel/test-diagnostics-channel-net.js index 57dfc9a6fc2beb..dc84a5b4e1db60 100644 --- a/test/parallel/test-diagnostics-channel-net.js +++ b/test/parallel/test-diagnostics-channel-net.js @@ -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(); diff --git a/test/parallel/test-tls-set-sigalgs.js b/test/parallel/test-tls-set-sigalgs.js index 59dc2ca0c786cf..b26355ff69ea37 100644 --- a/test/parallel/test-tls-set-sigalgs.js +++ b/test/parallel/test-tls-set-sigalgs.js @@ -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'); diff --git a/test/parallel/test-worker-workerdata-messageport.js b/test/parallel/test-worker-workerdata-messageport.js index 0df48465a071b1..fb263b10b6f80b 100644 --- a/test/parallel/test-worker-workerdata-messageport.js +++ b/test/parallel/test-worker-workerdata-messageport.js @@ -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';