Skip to content

Commit 265f159

Browse files
4garfieldaddaleax
authored andcommitted
test: replace concatenation with template literals
Replace string concatenation in test/async-hooks/test-signalwrap.js with template literals. PR-URL: #14295 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 83c8e5c commit 265f159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/async-hooks/test-signalwrap.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ assert.strictEqual(typeof signal1.triggerAsyncId, 'number');
2222
checkInvocations(signal1, { init: 1 }, 'when SIGUSR2 handler is set up');
2323

2424
let count = 0;
25-
exec('kill -USR2 ' + process.pid);
25+
exec(`kill -USR2 ${process.pid}`);
2626

2727
let signal2;
2828

@@ -36,7 +36,7 @@ function onsigusr2() {
3636
' signal1: when first SIGUSR2 handler is called for the first time');
3737

3838
// trigger same signal handler again
39-
exec('kill -USR2 ' + process.pid);
39+
exec(`kill -USR2 ${process.pid}`);
4040
} else {
4141
// second invocation
4242
checkInvocations(
@@ -61,7 +61,7 @@ function onsigusr2() {
6161
signal2, { init: 1 },
6262
'signal2: when second SIGUSR2 handler is setup');
6363

64-
exec('kill -USR2 ' + process.pid);
64+
exec(`kill -USR2 ${process.pid}`);
6565
}
6666
}
6767

0 commit comments

Comments
 (0)