Skip to content

Commit 3c50c59

Browse files
Suixinleiaddaleax
authored andcommitted
test: replace concatenation with template literals
PR-URL: #14293 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 751e873 commit 3c50c59

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/inspector/inspector-helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ Harness.prototype.addStderrFilter = function(regexp, callback) {
393393

394394
Harness.prototype.assertStillAlive = function() {
395395
assert.strictEqual(this.running_, true,
396-
'Child died: ' + JSON.stringify(this.result_));
396+
`Child died: ${JSON.stringify(this.result_)}`);
397397
};
398398

399399
Harness.prototype.run_ = function() {

test/parallel/test-https-server-keep-alive-timeout.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const fs = require('fs');
1212
const tests = [];
1313

1414
const serverOptions = {
15-
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
16-
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
15+
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
16+
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
1717
};
1818

1919
function test(fn) {

test/sequential/test-debugger-debug-brk.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ common.skipIfInspectorDisabled();
44
const assert = require('assert');
55
const spawn = require('child_process').spawn;
66

7-
const script = common.fixturesDir + '/empty.js';
7+
const script = `${common.fixturesDir}/empty.js`;
88

99
function test(arg) {
1010
const child = spawn(process.execPath, ['--inspect', arg, script]);

0 commit comments

Comments
 (0)