Skip to content

Commit

Permalink
test: replace concatenation with template literals
Browse files Browse the repository at this point in the history
PR-URL: #14293
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
Suixinlei authored and addaleax committed Jul 27, 2017
1 parent 751e873 commit 3c50c59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/inspector/inspector-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-https-server-keep-alive-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-debugger-debug-brk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 3c50c59

Please sign in to comment.