aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZongmin Lei <leizongmin@gmail.com>2017-07-16 17:11:45 +0800
committerRich Trott <rtrott@gmail.com>2017-07-22 18:02:34 -0700
commita5352d9f1f399a1a4d4a2f445ce08fb88da66695 (patch)
tree2062f30d5e56c0d7b3a46959135d561f5e9b546e
parent095357e26efc366b1cca389306e0780cc1fa81d9 (diff)
downloadandroid-node-v8-a5352d9f1f399a1a4d4a2f445ce08fb88da66695.tar.gz
android-node-v8-a5352d9f1f399a1a4d4a2f445ce08fb88da66695.tar.bz2
android-node-v8-a5352d9f1f399a1a4d4a2f445ce08fb88da66695.zip
test: replace concatenation with template literals
* test/parallel/test-stdout-close-catch.js PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r--test/parallel/test-stdout-close-catch.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-stdout-close-catch.js b/test/parallel/test-stdout-close-catch.js
index 322ed76aee..5f1f52fe51 100644
--- a/test/parallel/test-stdout-close-catch.js
+++ b/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);