Permalink
Browse files

test: replace concatenation with template literals

* 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 Trott committed Jul 16, 2017
1 parent 095357e commit a5352d9f1f399a1a4d4a2f445ce08fb88da66695
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-stdout-close-catch.js
@@ -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);

0 comments on commit a5352d9

Please sign in to comment.