@@ -34,11 +34,11 @@ let quit;
34
34
35
35
function startDebugger ( scriptToDebug ) {
36
36
scriptToDebug = process . env . NODE_DEBUGGER_TEST_SCRIPT ||
37
- common . fixturesDir + '/' + scriptToDebug ;
37
+ ` ${ common . fixturesDir } / ${ scriptToDebug } ` ;
38
38
39
- child = spawn ( process . execPath , [ 'debug' , ' --port=' + port , scriptToDebug ] ) ;
39
+ child = spawn ( process . execPath , [ 'debug' , ` --port=${ port } ` , scriptToDebug ] ) ;
40
40
41
- console . error ( './node' , 'debug' , ' --port=' + port , scriptToDebug ) ;
41
+ console . error ( './node' , 'debug' , ` --port=${ port } ` , scriptToDebug ) ;
42
42
43
43
child . stdout . setEncoding ( 'utf-8' ) ;
44
44
child . stdout . on ( 'data' , function ( data ) {
@@ -53,10 +53,10 @@ function startDebugger(scriptToDebug) {
53
53
child . on ( 'line' , function ( line ) {
54
54
line = line . replace ( / ^ ( d e b u g > * ) + / , '' ) ;
55
55
console . log ( line ) ;
56
- assert . ok ( expected . length > 0 , ' Got unexpected line: ' + line ) ;
56
+ assert . ok ( expected . length > 0 , ` Got unexpected line: ${ line } ` ) ;
57
57
58
58
const expectedLine = expected [ 0 ] . lines . shift ( ) ;
59
- assert . ok ( line . match ( expectedLine ) !== null , line + ' != ' + expectedLine ) ;
59
+ assert . ok ( line . match ( expectedLine ) !== null , ` ${ line } != ${ expectedLine } ` ) ;
60
60
61
61
if ( expected [ 0 ] . lines . length === 0 ) {
62
62
const callback = expected [ 0 ] . callback ;
@@ -83,7 +83,7 @@ function startDebugger(scriptToDebug) {
83
83
console . error ( 'dying badly buffer=%j' , buffer ) ;
84
84
let err = 'Timeout' ;
85
85
if ( expected . length > 0 && expected [ 0 ] . lines ) {
86
- err = err + ' . Expected: ' + expected [ 0 ] . lines . shift ( ) ;
86
+ err = ` ${ err } . Expected: ${ expected [ 0 ] . lines . shift ( ) } ` ;
87
87
}
88
88
89
89
child . on ( 'close' , function ( ) {
@@ -112,8 +112,8 @@ function startDebugger(scriptToDebug) {
112
112
function addTest ( input , output ) {
113
113
function next ( ) {
114
114
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` ) ;
117
117
118
118
if ( ! expected [ 0 ] . lines ) {
119
119
const callback = expected [ 0 ] . callback ;
0 commit comments