@@ -34,11 +34,11 @@ let quit;
3434
3535function startDebugger ( scriptToDebug ) {
3636 scriptToDebug = process . env . NODE_DEBUGGER_TEST_SCRIPT ||
37- common . fixturesDir + '/' + scriptToDebug ;
37+ ` ${ common . fixturesDir } / ${ scriptToDebug } ` ;
3838
39- child = spawn ( process . execPath , [ 'debug' , ' --port=' + port , scriptToDebug ] ) ;
39+ child = spawn ( process . execPath , [ 'debug' , ` --port=${ port } ` , scriptToDebug ] ) ;
4040
41- console . error ( './node' , 'debug' , ' --port=' + port , scriptToDebug ) ;
41+ console . error ( './node' , 'debug' , ` --port=${ port } ` , scriptToDebug ) ;
4242
4343 child . stdout . setEncoding ( 'utf-8' ) ;
4444 child . stdout . on ( 'data' , function ( data ) {
@@ -53,10 +53,10 @@ function startDebugger(scriptToDebug) {
5353 child . on ( 'line' , function ( line ) {
5454 line = line . replace ( / ^ ( d e b u g > * ) + / , '' ) ;
5555 console . log ( line ) ;
56- assert . ok ( expected . length > 0 , ' Got unexpected line: ' + line ) ;
56+ assert . ok ( expected . length > 0 , ` Got unexpected line: ${ line } ` ) ;
5757
5858 const expectedLine = expected [ 0 ] . lines . shift ( ) ;
59- assert . ok ( line . match ( expectedLine ) !== null , line + ' != ' + expectedLine ) ;
59+ assert . ok ( line . match ( expectedLine ) !== null , ` ${ line } != ${ expectedLine } ` ) ;
6060
6161 if ( expected [ 0 ] . lines . length === 0 ) {
6262 const callback = expected [ 0 ] . callback ;
@@ -83,7 +83,7 @@ function startDebugger(scriptToDebug) {
8383 console . error ( 'dying badly buffer=%j' , buffer ) ;
8484 let err = 'Timeout' ;
8585 if ( expected . length > 0 && expected [ 0 ] . lines ) {
86- err = err + ' . Expected: ' + expected [ 0 ] . lines . shift ( ) ;
86+ err = ` ${ err } . Expected: ${ expected [ 0 ] . lines . shift ( ) } ` ;
8787 }
8888
8989 child . on ( 'close' , function ( ) {
@@ -112,8 +112,8 @@ function startDebugger(scriptToDebug) {
112112function addTest ( input , output ) {
113113 function next ( ) {
114114 if ( expected . length > 0 ) {
115- console . log ( ' debug> ' + expected [ 0 ] . input ) ;
116- child . stdin . write ( expected [ 0 ] . input + '\n' ) ;
115+ console . log ( ` debug> ${ expected [ 0 ] . input } ` ) ;
116+ child . stdin . write ( ` ${ expected [ 0 ] . input } \n` ) ;
117117
118118 if ( ! expected [ 0 ] . lines ) {
119119 const callback = expected [ 0 ] . callback ;
0 commit comments