Skip to content

Commit 3c50c59

Browse files
笑斌addaleax
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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const fs = require('fs');
1212
consttests=[];
1313

1414
constserverOptions={
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
functiontest(fn){

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ common.skipIfInspectorDisabled();
44
constassert=require('assert');
55
constspawn=require('child_process').spawn;
66

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

99
functiontest(arg){
1010
constchild=spawn(process.execPath,['--inspect',arg,script]);

0 commit comments

Comments
(0)