From 1b4a7cb96c5203ec2b0a2c78d5311ac157d8b62d Mon Sep 17 00:00:00 2001 From: Zongmin Lei Date: Sun, 16 Jul 2017 17:11:45 +0800 Subject: [PATCH] test: replace string concatenation with template literals * test/parallel/test-stdout-close-catch.js --- 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 322ed76aee8fc0..5f1f52fe514b16 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);