@@ -13,11 +13,11 @@ let quit;
1313
1414function startDebugger ( scriptToDebug ) {
1515 scriptToDebug = process . env . NODE_DEBUGGER_TEST_SCRIPT ||
16- common . fixturesDir + '/' + scriptToDebug ;
16+ ` ${ common . fixturesDir } / ${ scriptToDebug } ` ;
1717
18- child = spawn ( process . execPath , [ 'debug' , ' --port=' + port , scriptToDebug ] ) ;
18+ child = spawn ( process . execPath , [ 'debug' , ` --port=${ port } ` , scriptToDebug ] ) ;
1919
20- console . error ( './node' , 'debug' , ' --port=' + port , scriptToDebug ) ;
20+ console . error ( './node' , 'debug' , ` --port=${ port } ` , scriptToDebug ) ;
2121
2222 child . stdout . setEncoding ( 'utf-8' ) ;
2323 child . stdout . on ( 'data' , function ( data ) {
@@ -32,10 +32,10 @@ function startDebugger(scriptToDebug) {
3232 child . on ( 'line' , function ( line ) {
3333 line = line . replace ( / ^ ( d e b u g > * ) + / , '' ) ;
3434 console . log ( line ) ;
35- assert . ok ( expected . length > 0 , ' Got unexpected line: ' + line ) ;
35+ assert . ok ( expected . length > 0 , ` Got unexpected line: ${ line } ` ) ;
3636
3737 const expectedLine = expected [ 0 ] . lines . shift ( ) ;
38- assert . ok ( line . match ( expectedLine ) !== null , line + ' != ' + expectedLine ) ;
38+ assert . ok ( line . match ( expectedLine ) !== null , ` ${ line } != ${ expectedLine } ` ) ;
3939
4040 if ( expected [ 0 ] . lines . length === 0 ) {
4141 const callback = expected [ 0 ] . callback ;
@@ -62,7 +62,7 @@ function startDebugger(scriptToDebug) {
6262 console . error ( 'dying badly buffer=%j' , buffer ) ;
6363 let err = 'Timeout' ;
6464 if ( expected . length > 0 && expected [ 0 ] . lines ) {
65- err = err + ' . Expected: ' + expected [ 0 ] . lines . shift ( ) ;
65+ err = ` ${ err } . Expected: ${ expected [ 0 ] . lines . shift ( ) } ` ;
6666 }
6767
6868 child . on ( 'close' , function ( ) {
@@ -91,8 +91,8 @@ function startDebugger(scriptToDebug) {
9191function addTest ( input , output ) {
9292 function next ( ) {
9393 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` ) ;
9696
9797 if ( ! expected [ 0 ] . lines ) {
9898 const callback = expected [ 0 ] . callback ;
0 commit comments