@@ -45,30 +45,29 @@ const assert = require('assert');
4545 // .then(() => cli.quit())
4646 // .then(null, onFatal);
4747
48- ( async ( ) => {
49- await cli . waitForInitialBreak ( ) ;
50- await cli . waitForPrompt ( ) ;
51- await cli . command ( 'scripts' ) ;
52- assert . match (
53- cli . output ,
54- / ^ \* \d + : \S + d e b u g g e r (?: \/ | \\ ) t h r e e - l i n e s \. j s / m,
55- 'lists the user script' ) ;
56- assert . doesNotMatch (
57- cli . output ,
58- / \d + : n o d e : i n t e r n a l \/ b u f f e r / ,
59- 'omits node-internal scripts' ) ;
60- await cli . command ( 'scripts(true)' ) ;
61- assert . match (
62- cli . output ,
63- / \* \d + : \S + d e b u g g e r (?: \/ | \\ ) t h r e e - l i n e s \. j s / ,
64- 'lists the user script' ) ;
65- assert . match (
66- cli . output ,
67- / \d + : n o d e : i n t e r n a l \/ b u f f e r / ,
68- 'includes node-internal scripts' ) ;
69-
70- } ) ( )
71- . then ( ( ) => cli . quit ( ) )
72- . then ( null , onFatal ) ;
48+ ( async ( ) => {
49+ await cli . waitForInitialBreak ( ) ;
50+ await cli . waitForPrompt ( ) ;
51+ await cli . command ( 'scripts' ) ;
52+ assert . match (
53+ cli . output ,
54+ / ^ \* \d + : \S + d e b u g g e r (?: \/ | \\ ) t h r e e - l i n e s \. j s / m,
55+ 'lists the user script' ) ;
56+ assert . doesNotMatch (
57+ cli . output ,
58+ / \d + : n o d e : i n t e r n a l \/ b u f f e r / ,
59+ 'omits node-internal scripts' ) ;
60+ await cli . command ( 'scripts(true)' ) ;
61+ assert . match (
62+ cli . output ,
63+ / \* \d + : \S + d e b u g g e r (?: \/ | \\ ) t h r e e - l i n e s \. j s / ,
64+ 'lists the user script' ) ;
65+ assert . match (
66+ cli . output ,
67+ / \d + : n o d e : i n t e r n a l \/ b u f f e r / ,
68+ 'includes node-internal scripts' ) ;
69+ } ) ( )
70+ . then ( ( ) => cli . quit ( ) )
71+ . then ( null , onFatal ) ;
7372
7473}
0 commit comments