From a5352d9f1f399a1a4d4a2f445ce08fb88da66695 Mon Sep 17 00:00:00 2001 From: Zongmin Lei Date: Sun, 16 Jul 2017 17:11:45 +0800 Subject: [PATCH] test: replace concatenation with template literals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test/parallel/test-stdout-close-catch.js PR-URL: https://github.com/nodejs/node/pull/14298 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen Reviewed-By: Timothy Gu Reviewed-By: James M Snell --- test/parallel/test-stdout-close-catch.js | 6 +++--- 1 file 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);