Skip to content

Commit

Permalink
test: replace concatenation with template literals
Browse files Browse the repository at this point in the history
* test/parallel/test-stdout-close-catch.js

PR-URL: #14298
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
leizongmin authored and addaleax committed Jul 24, 2017
1 parent ebb9090 commit 3414e42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-stdout-close-catch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const child_process = require('child_process');

const testScript = path.join(common.fixturesDir, 'catch-stdout-error.js');

const cmd = JSON.stringify(process.execPath) + ' ' +
JSON.stringify(testScript) + ' | ' +
JSON.stringify(process.execPath) + ' ' +
const cmd = `${JSON.stringify(process.execPath)} ` +
`${JSON.stringify(testScript)} | ` +
`${JSON.stringify(process.execPath)} ` +
'-pe "process.stdin.on(\'data\' , () => process.exit(1))"';

const child = child_process.exec(cmd);
Expand Down

0 comments on commit 3414e42

Please sign in to comment.