@@ -10,7 +10,7 @@ const PATH_TO_COMPARISON_FILES = path.resolve(__dirname, '..', '..', '..', 'test
1010
1111describe ( 'RuleViewer implementations' , ( ) => {
1212 describe ( 'RuleDetailDisplayer' , ( ) => {
13- it ( 'When given no rules, outputs summary and nothing else' , ( ) => {
13+ it ( 'When given no rules, outputs a line separator and nothing else' , ( ) => {
1414 const display = new SpyDisplay ( ) ;
1515 const viewer = new RuleDetailDisplayer ( display ) ;
1616
@@ -20,7 +20,7 @@ describe('RuleViewer implementations', () => {
2020 expect ( displayEvents ) . toHaveLength ( 1 ) ;
2121 expect ( displayEvents ) . toEqual ( [ {
2222 type : DisplayEventType . LOG ,
23- data : 'Found 0 rules. '
23+ data : ''
2424 } ] ) ;
2525 } ) ;
2626
@@ -34,7 +34,7 @@ describe('RuleViewer implementations', () => {
3434 ] ) ;
3535
3636 const actualDisplayEvents = display . getDisplayEvents ( ) ;
37- expect ( actualDisplayEvents ) . toHaveLength ( 2 ) ;
37+ expect ( actualDisplayEvents ) . toHaveLength ( 3 ) ;
3838 for ( const displayEvent of actualDisplayEvents ) {
3939 expect ( displayEvent . type ) . toEqual ( DisplayEventType . LOG ) ;
4040 }
@@ -57,7 +57,7 @@ describe('RuleViewer implementations', () => {
5757 ] ) ;
5858
5959 const actualDisplayEvents = display . getDisplayEvents ( ) ;
60- expect ( actualDisplayEvents ) . toHaveLength ( 2 ) ;
60+ expect ( actualDisplayEvents ) . toHaveLength ( 3 ) ;
6161 for ( const displayEvent of actualDisplayEvents ) {
6262 expect ( displayEvent . type ) . toEqual ( DisplayEventType . LOG ) ;
6363 }
@@ -80,7 +80,7 @@ describe('RuleViewer implementations', () => {
8080 expect ( displayEvents ) . toHaveLength ( 1 ) ;
8181 expect ( displayEvents ) . toEqual ( [ {
8282 type : DisplayEventType . LOG ,
83- data : 'Found 0 rules. '
83+ data : ''
8484 } ] ) ;
8585 } ) ;
8686
@@ -94,10 +94,10 @@ describe('RuleViewer implementations', () => {
9494 ] ) ;
9595
9696 const displayEvents = display . getDisplayEvents ( ) ;
97- expect ( displayEvents ) . toHaveLength ( 2 ) ;
97+ expect ( displayEvents ) . toHaveLength ( 3 ) ;
9898 expect ( displayEvents ) . toEqual ( [ {
9999 type : DisplayEventType . LOG ,
100- data : 'Found 1 rule(s): '
100+ data : ''
101101 } , {
102102 type : DisplayEventType . TABLE ,
103103 data : JSON . stringify ( {
@@ -110,6 +110,9 @@ describe('RuleViewer implementations', () => {
110110 tag : rule . getFormattedTags ( )
111111 } ]
112112 } )
113+ } , {
114+ type : DisplayEventType . LOG ,
115+ data : ''
113116 } ] )
114117 } ) ;
115118
@@ -125,10 +128,10 @@ describe('RuleViewer implementations', () => {
125128 ] ) ;
126129
127130 const displayEvents = display . getDisplayEvents ( ) ;
128- expect ( displayEvents ) . toHaveLength ( 2 ) ;
131+ expect ( displayEvents ) . toHaveLength ( 3 ) ;
129132 expect ( displayEvents ) . toEqual ( [ {
130133 type : DisplayEventType . LOG ,
131- data : 'Found 2 rule(s): '
134+ data : ''
132135 } , {
133136 type : DisplayEventType . TABLE ,
134137 data : JSON . stringify ( {
@@ -147,6 +150,9 @@ describe('RuleViewer implementations', () => {
147150 tag : rule2 . getFormattedTags ( )
148151 } ]
149152 } )
153+ } , {
154+ type : DisplayEventType . LOG ,
155+ data : ''
150156 } ] ) ;
151157 } ) ;
152158 } ) ;
0 commit comments