From 85c181ab78e7902c1f5bc61fcfa9f1241ffb01ab Mon Sep 17 00:00:00 2001 From: blade254353074 Date: Sun, 16 Jul 2017 15:36:22 +0800 Subject: [PATCH] test: use template literals as appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace string concatenation with template string literals in test-graph.signal.js. PR-URL: https://github.com/nodejs/node/pull/14289 Reviewed-By: Michaël Zasso Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil --- test/async-hooks/test-graph.signal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/async-hooks/test-graph.signal.js b/test/async-hooks/test-graph.signal.js index 3facdae0fa266e..92334b98268840 100644 --- a/test/async-hooks/test-graph.signal.js +++ b/test/async-hooks/test-graph.signal.js @@ -16,20 +16,20 @@ hooks.enable(); process.on('SIGUSR2', common.mustCall(onsigusr2, 2)); let count = 0; -exec('kill -USR2 ' + process.pid); +exec(`kill -USR2 ${process.pid}`); function onsigusr2() { count++; if (count === 1) { // trigger same signal handler again - exec('kill -USR2 ' + process.pid); + exec(`kill -USR2 ${process.pid}`); } else { // install another signal handler process.removeAllListeners('SIGUSR2'); process.on('SIGUSR2', common.mustCall(onsigusr2Again)); - exec('kill -USR2 ' + process.pid); + exec(`kill -USR2 ${process.pid}`); } }