@@ -14,12 +14,12 @@ test('stepping through breakpoints', (t) => {
1414 throw error ;
1515 }
1616
17- return cli . waitFor ( / b r e a k / )
17+ return cli . waitForInitialBreak ( )
1818 . then ( ( ) => cli . waitForPrompt ( ) )
1919 . then ( ( ) => {
2020 t . match (
2121 cli . output ,
22- `break in ${ script } :1` ,
22+ ` in ${ script } :1` ,
2323 'pauses in the first line of the script' ) ;
2424 t . match (
2525 cli . output ,
@@ -30,7 +30,7 @@ test('stepping through breakpoints', (t) => {
3030 . then ( ( ) => {
3131 t . match (
3232 cli . output ,
33- `break in ${ script } :2` ,
33+ ` in ${ script } :2` ,
3434 'pauses in next line of the script' ) ;
3535 t . match (
3636 cli . output ,
@@ -41,7 +41,7 @@ test('stepping through breakpoints', (t) => {
4141 . then ( ( ) => {
4242 t . match (
4343 cli . output ,
44- `break in ${ script } :3` ,
44+ ` in ${ script } :3` ,
4545 'pauses in next line of the script' ) ;
4646 t . match (
4747 cli . output ,
@@ -52,7 +52,7 @@ test('stepping through breakpoints', (t) => {
5252 . then ( ( ) => {
5353 t . match (
5454 cli . output ,
55- `break in ${ script } :10` ,
55+ ` in ${ script } :10` ,
5656 'pauses on the next breakpoint' ) ;
5757 t . match (
5858 cli . output ,
@@ -94,21 +94,21 @@ test('stepping through breakpoints', (t) => {
9494 . then ( ( ) => {
9595 t . match (
9696 cli . output ,
97- 'break in timers.js' ,
97+ ' in timers.js' ,
9898 'entered timers.js' ) ;
9999 } )
100100 . then ( ( ) => cli . stepCommand ( 'cont' ) )
101101 . then ( ( ) => {
102102 t . match (
103103 cli . output ,
104- `break in ${ script } :16` ,
104+ ` in ${ script } :16` ,
105105 'found breakpoint we set above w/ line number only' ) ;
106106 } )
107107 . then ( ( ) => cli . stepCommand ( 'cont' ) )
108108 . then ( ( ) => {
109109 t . match (
110110 cli . output ,
111- `break in ${ script } :6` ,
111+ ` in ${ script } :6` ,
112112 'found breakpoint we set above w/ line number & script' ) ;
113113 } )
114114 . then ( ( ) => cli . stepCommand ( '' ) )
@@ -132,7 +132,7 @@ test('sb before loading file', (t) => {
132132 throw error ;
133133 }
134134
135- return cli . waitFor ( / b r e a k / )
135+ return cli . waitForInitialBreak ( )
136136 . then ( ( ) => cli . waitForPrompt ( ) )
137137 . then ( ( ) => cli . command ( 'sb("other.js", 3)' ) )
138138 . then ( ( ) => {
@@ -145,7 +145,7 @@ test('sb before loading file', (t) => {
145145 . then ( ( ) => {
146146 t . match (
147147 cli . output ,
148- `break in ${ otherScript } :3` ,
148+ ` in ${ otherScript } :3` ,
149149 'found breakpoint in file that was not loaded yet' ) ;
150150 } )
151151 . then ( ( ) => cli . quit ( ) )
@@ -161,7 +161,7 @@ test('clearBreakpoint', (t) => {
161161 throw error ;
162162 }
163163
164- return cli . waitFor ( / b r e a k / )
164+ return cli . waitForInitialBreak ( )
165165 . then ( ( ) => cli . waitForPrompt ( ) )
166166 . then ( ( ) => cli . command ( 'sb("break.js", 3)' ) )
167167 . then ( ( ) => cli . command ( 'sb("break.js", 9)' ) )
@@ -187,7 +187,7 @@ test('clearBreakpoint', (t) => {
187187 . then ( ( ) => {
188188 t . match (
189189 cli . output ,
190- `break in ${ script } :9` ,
190+ ` in ${ script } :9` ,
191191 'hits the 2nd breakpoint because the 1st was cleared' ) ;
192192 } )
193193 . then ( ( ) => cli . quit ( ) )
0 commit comments