From c24a73d23c098e5cde7e55ce0c97f6daa11facc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=91=E6=96=8C?= Date: Sun, 16 Jul 2017 16:21:16 +0800 Subject: [PATCH] test: replace concatenation with template literals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/14293 Reviewed-By: Rich Trott Reviewed-By: Michaƫl Zasso Reviewed-By: Gibson Fahnestock Reviewed-By: Benjamin Gruenbaum Reviewed-By: Gireesh Punathil --- test/inspector/inspector-helper.js | 2 +- test/parallel/test-https-server-keep-alive-timeout.js | 4 ++-- test/sequential/test-debugger-debug-brk.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/inspector/inspector-helper.js b/test/inspector/inspector-helper.js index e6964b0fa2b0d0..59821631857d9f 100644 --- a/test/inspector/inspector-helper.js +++ b/test/inspector/inspector-helper.js @@ -393,7 +393,7 @@ Harness.prototype.addStderrFilter = function(regexp, callback) { Harness.prototype.assertStillAlive = function() { assert.strictEqual(this.running_, true, - 'Child died: ' + JSON.stringify(this.result_)); + `Child died: ${JSON.stringify(this.result_)}`); }; Harness.prototype.run_ = function() { diff --git a/test/parallel/test-https-server-keep-alive-timeout.js b/test/parallel/test-https-server-keep-alive-timeout.js index 01d0fa6078b021..b302205e5e272f 100644 --- a/test/parallel/test-https-server-keep-alive-timeout.js +++ b/test/parallel/test-https-server-keep-alive-timeout.js @@ -12,8 +12,8 @@ const fs = require('fs'); const tests = []; const serverOptions = { - key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'), - cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem') + key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), + cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) }; function test(fn) { diff --git a/test/sequential/test-debugger-debug-brk.js b/test/sequential/test-debugger-debug-brk.js index f6a7ce0605ad07..54e17135640f19 100644 --- a/test/sequential/test-debugger-debug-brk.js +++ b/test/sequential/test-debugger-debug-brk.js @@ -4,7 +4,7 @@ common.skipIfInspectorDisabled(); const assert = require('assert'); const spawn = require('child_process').spawn; -const script = common.fixturesDir + '/empty.js'; +const script = `${common.fixturesDir}/empty.js`; function test(arg) { const child = spawn(process.execPath, ['--inspect', arg, script]);