File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,30 @@ describe('e2e', function () {
571
571
shell . assertNoErrors ( ) ;
572
572
} ) ;
573
573
574
+ it ( 'prints only multiline dots between prompts' , async function ( ) {
575
+ await shell . waitForPrompt ( ) ;
576
+ const outputOffsetBefore = shell . output . length ;
577
+ shell . writeInputLine ( `
578
+ const foo = {
579
+ bar: "baz"
580
+ };
581
+ ` ) ;
582
+
583
+ // Wait for some multiline dots
584
+ await shell . eventually ( ( ) => {
585
+ shell . assertContainsOutput ( '... ...' ) ;
586
+ } ) ;
587
+ const outputOffsetAfterDots = shell . output . length ;
588
+ const outputBetween = shell . output
589
+ . substring ( outputOffsetBefore , outputOffsetAfterDots )
590
+ . trim ( ) ;
591
+ // Expect just the multiline dots
592
+ expect ( outputBetween ) . equals ( '... ...' ) ;
593
+
594
+ // Waiting for a new prompt
595
+ await shell . waitForPrompt ( outputOffsetAfterDots ) ;
596
+ } ) ;
597
+
574
598
it ( 'runs help command' , async function ( ) {
575
599
expect ( await shell . executeLine ( 'help' ) ) . to . include ( 'Shell Help' ) ;
576
600
shell . assertNoErrors ( ) ;
You can’t perform that action at this time.
0 commit comments