From f8763bb077db2f0be74e353c0b4f9e353c0fffa8 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 7 Mar 2019 01:03:53 +0100 Subject: benchmark,doc,lib,test: capitalize comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt Reviewed-By: Michaƫl Zasso --- test/async-hooks/test-graph.signal.js | 4 ++-- test/async-hooks/test-promise.promise-before-init-hooks.js | 2 +- test/async-hooks/test-signalwrap.js | 4 ++-- test/async-hooks/test-tcpwrap.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test/async-hooks') diff --git a/test/async-hooks/test-graph.signal.js b/test/async-hooks/test-graph.signal.js index 4c5b857fc2..c2f889e7b0 100644 --- a/test/async-hooks/test-graph.signal.js +++ b/test/async-hooks/test-graph.signal.js @@ -23,10 +23,10 @@ function onsigusr2() { count++; if (count === 1) { - // trigger same signal handler again + // Trigger same signal handler again exec(`kill -USR2 ${process.pid}`); } else { - // install another signal handler + // Install another signal handler process.removeAllListeners('SIGUSR2'); process.on('SIGUSR2', common.mustCall(onsigusr2Again)); diff --git a/test/async-hooks/test-promise.promise-before-init-hooks.js b/test/async-hooks/test-promise.promise-before-init-hooks.js index 0f74c968e6..51787b8065 100644 --- a/test/async-hooks/test-promise.promise-before-init-hooks.js +++ b/test/async-hooks/test-promise.promise-before-init-hooks.js @@ -9,7 +9,7 @@ const p = new Promise(common.mustCall(function executor(resolve) { resolve(5); })); -// init hooks after promise was created +// Init hooks after promise was created const hooks = initHooks({ allowNoInit: true }); hooks.enable(); diff --git a/test/async-hooks/test-signalwrap.js b/test/async-hooks/test-signalwrap.js index 5bc02e6dc4..b906355af7 100644 --- a/test/async-hooks/test-signalwrap.js +++ b/test/async-hooks/test-signalwrap.js @@ -42,7 +42,7 @@ function onsigusr2() { signal1, { init: 1, before: 1 }, ' signal1: when first SIGUSR2 handler is called for the first time'); - // trigger same signal handler again + // Trigger same signal handler again exec(`kill -USR2 ${process.pid}`); } else { // second invocation @@ -50,7 +50,7 @@ function onsigusr2() { signal1, { init: 1, before: 2, after: 1 }, 'signal1: when first SIGUSR2 handler is called for the second time'); - // install another signal handler + // Install another signal handler process.removeAllListeners('SIGUSR2'); process.on('SIGUSR2', common.mustCall(onsigusr2Again)); diff --git a/test/async-hooks/test-tcpwrap.js b/test/async-hooks/test-tcpwrap.js index a01a1fc4fe..3256a1598b 100644 --- a/test/async-hooks/test-tcpwrap.js +++ b/test/async-hooks/test-tcpwrap.js @@ -79,7 +79,7 @@ function ontcpConnection(serverConnection) { return; } - // only focusing on TCPCONNECTWRAP here + // Only focusing on TCPCONNECTWRAP here const tcpconnects = hooks.activitiesOfTypes('TCPCONNECTWRAP'); assert.strictEqual(tcpconnects.length, 1); tcpconnect = tcpconnects[0]; -- cgit v1.2.3