From 6d5332fdf57c08a6b1f89da1eb3025c7032ca8d4 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 1/3] test: replace with template literals --- test/inspector/inspector-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/inspector/inspector-helper.js b/test/inspector/inspector-helper.js index bc6097436425af..a640bb8f66fbc4 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() { From 19e3bb101703189212fba9a5d963fb8542a4fa96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=91=E6=96=8C?= Date: Sun, 16 Jul 2017 16:29:25 +0800 Subject: [PATCH 2/3] test: replace with template literals --- test/parallel/test-https-server-keep-alive-timeout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { From 5d9d6fc75af1e2ee2633f33c20022863b616b6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=91=E6=96=8C?= Date: Sun, 16 Jul 2017 16:33:24 +0800 Subject: [PATCH 3/3] test: replace with template literals --- test/sequential/test-debugger-debug-brk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);