@@ -13,11 +13,11 @@ let quit;
13
13
14
14
function startDebugger ( scriptToDebug ) {
15
15
scriptToDebug = process . env . NODE_DEBUGGER_TEST_SCRIPT ||
16
- common . fixturesDir + '/' + scriptToDebug ;
16
+ ` ${ common . fixturesDir } / ${ scriptToDebug } ` ;
17
17
18
- child = spawn ( process . execPath , [ 'debug' , ' --port=' + port , scriptToDebug ] ) ;
18
+ child = spawn ( process . execPath , [ 'debug' , ` --port=${ port } ` , scriptToDebug ] ) ;
19
19
20
- console . error ( './node' , 'debug' , ' --port=' + port , scriptToDebug ) ;
20
+ console . error ( './node' , 'debug' , ` --port=${ port } ` , scriptToDebug ) ;
21
21
22
22
child . stdout . setEncoding ( 'utf-8' ) ;
23
23
child . stdout . on ( 'data' , function ( data ) {
@@ -32,10 +32,10 @@ function startDebugger(scriptToDebug) {
32
32
child . on ( 'line' , function ( line ) {
33
33
line = line . replace ( / ^ ( d e b u g > * ) + / , '' ) ;
34
34
console . log ( line ) ;
35
- assert . ok ( expected . length > 0 , ' Got unexpected line: ' + line ) ;
35
+ assert . ok ( expected . length > 0 , ` Got unexpected line: ${ line } ` ) ;
36
36
37
37
const expectedLine = expected [ 0 ] . lines . shift ( ) ;
38
- assert . ok ( line . match ( expectedLine ) !== null , line + ' != ' + expectedLine ) ;
38
+ assert . ok ( line . match ( expectedLine ) !== null , ` ${ line } != ${ expectedLine } ` ) ;
39
39
40
40
if ( expected [ 0 ] . lines . length === 0 ) {
41
41
const callback = expected [ 0 ] . callback ;
@@ -62,7 +62,7 @@ function startDebugger(scriptToDebug) {
62
62
console . error ( 'dying badly buffer=%j' , buffer ) ;
63
63
let err = 'Timeout' ;
64
64
if ( expected . length > 0 && expected [ 0 ] . lines ) {
65
- err = err + ' . Expected: ' + expected [ 0 ] . lines . shift ( ) ;
65
+ err = ` ${ err } . Expected: ${ expected [ 0 ] . lines . shift ( ) } ` ;
66
66
}
67
67
68
68
child . on ( 'close' , function ( ) {
@@ -91,8 +91,8 @@ function startDebugger(scriptToDebug) {
91
91
function addTest ( input , output ) {
92
92
function next ( ) {
93
93
if ( expected . length > 0 ) {
94
- console . log ( ' debug> ' + expected [ 0 ] . input ) ;
95
- child . stdin . write ( expected [ 0 ] . input + '\n' ) ;
94
+ console . log ( ` debug> ${ expected [ 0 ] . input } ` ) ;
95
+ child . stdin . write ( ` ${ expected [ 0 ] . input } \n` ) ;
96
96
97
97
if ( ! expected [ 0 ] . lines ) {
98
98
const callback = expected [ 0 ] . callback ;
0 commit comments