From b55bd6e8c1581b0d46a740707568dc1619cf9b19 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Mon, 28 Nov 2022 11:37:17 +0900 Subject: [PATCH] test: fix typos in test/parallel Fix typos in parallel tests. PR-URL: https://github.com/nodejs/node/pull/45583 Reviewed-By: Antoine du Hamel Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Darshan Sen Reviewed-By: Erick Wendel Reviewed-By: Kohei Ueno --- test/parallel/test-event-capture-rejections.js | 2 +- test/parallel/test-stream-writable-samecb-singletick.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-event-capture-rejections.js b/test/parallel/test-event-capture-rejections.js index ea2db46ec2c5a0..de426996e0f538 100644 --- a/test/parallel/test-event-capture-rejections.js +++ b/test/parallel/test-event-capture-rejections.js @@ -107,7 +107,7 @@ function globalSetting() { } // We need to be able to configure this for streams, as we would -// like to call destro(err) there. +// like to call destroy(err) there. function configurable() { const ee = new EventEmitter({ captureRejections: true }); const _err = new Error('kaboom'); diff --git a/test/parallel/test-stream-writable-samecb-singletick.js b/test/parallel/test-stream-writable-samecb-singletick.js index e7dfa648797821..9357a56535b6be 100644 --- a/test/parallel/test-stream-writable-samecb-singletick.js +++ b/test/parallel/test-stream-writable-samecb-singletick.js @@ -15,7 +15,7 @@ const async_hooks = require('async_hooks'); const checkTickCreated = common.mustCall(); async_hooks.createHook({ - init(id, type, triggerId, resoure) { + init(id, type, triggerId, resource) { if (type === 'TickObject') checkTickCreated(); } }).enable();