test: replace concatenation with template literals
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
93f47b1154
commit
c24a73d23c
@ -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() {
|
||||
|
@ -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) {
|
||||
|
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user