Skip to content

Commit 3414e42

Browse files
leizongminaddaleax
authored andcommitted
test: replace concatenation with template literals
* test/parallel/test-stdout-close-catch.js PR-URL: #14298 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ebb9090 commit 3414e42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/parallel/test-stdout-close-catch.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const child_process = require('child_process');
66

77
consttestScript=path.join(common.fixturesDir,'catch-stdout-error.js');
88

9-
constcmd=JSON.stringify(process.execPath)+' '+
10-
JSON.stringify(testScript)+' | '+
11-
JSON.stringify(process.execPath)+' '+
9+
constcmd=`${JSON.stringify(process.execPath)} `+
10+
`${JSON.stringify(testScript)} | `+
11+
`${JSON.stringify(process.execPath)} `+
1212
'-pe "process.stdin.on(\'data\' , () => process.exit(1))"';
1313

1414
constchild=child_process.exec(cmd);

0 commit comments

Comments
(0)