diff options
author | Song, Bintao Garfield <songbintaochina@gmail.com> | 2017-07-16 16:32:26 +0800 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-07-23 16:11:19 +0200 |
commit | 651fc55b6e35da544f3547f762a2076571336ac8 (patch) | |
tree | 379c122708f2974064e825156bf4dd0efa9d6ca7 /test/async-hooks/test-signalwrap.js | |
parent | b440e8e4e480e71d43eee3f1fadcf4e07886296b (diff) | |
download | android-node-v8-651fc55b6e35da544f3547f762a2076571336ac8.tar.gz android-node-v8-651fc55b6e35da544f3547f762a2076571336ac8.tar.bz2 android-node-v8-651fc55b6e35da544f3547f762a2076571336ac8.zip |
test: replace concatenation with template literals
Replace string concatenation in test/async-hooks/test-signalwrap.js
with template literals.
PR-URL: https://github.com/nodejs/node/pull/14295
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'test/async-hooks/test-signalwrap.js')
-rw-r--r-- | test/async-hooks/test-signalwrap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/async-hooks/test-signalwrap.js b/test/async-hooks/test-signalwrap.js index c2e664af9a..ff7d08bc12 100644 --- a/test/async-hooks/test-signalwrap.js +++ b/test/async-hooks/test-signalwrap.js @@ -22,7 +22,7 @@ assert.strictEqual(typeof signal1.triggerAsyncId, 'number'); checkInvocations(signal1, { init: 1 }, 'when SIGUSR2 handler is set up'); let count = 0; -exec('kill -USR2 ' + process.pid); +exec(`kill -USR2 ${process.pid}`); let signal2; @@ -36,7 +36,7 @@ function onsigusr2() { ' signal1: when first SIGUSR2 handler is called for the first time'); // trigger same signal handler again - exec('kill -USR2 ' + process.pid); + exec(`kill -USR2 ${process.pid}`); } else { // second invocation checkInvocations( @@ -61,7 +61,7 @@ function onsigusr2() { signal2, { init: 1 }, 'signal2: when second SIGUSR2 handler is setup'); - exec('kill -USR2 ' + process.pid); + exec(`kill -USR2 ${process.pid}`); } } |