Skip to content

Commit

Permalink
test: replace concatenation with template literals
Browse files Browse the repository at this point in the history
Replace string concatenation in test/async-hooks/test-signalwrap.js
with template literals.

PR-URL: #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>
  • Loading branch information
4garfield authored and addaleax committed Jul 24, 2017
1 parent 83c8e5c commit 265f159
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/async-hooks/test-signalwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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(
Expand All @@ -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}`);
}
}

Expand Down

0 comments on commit 265f159

Please sign in to comment.