@@ -149,40 +149,40 @@ describe('cli tool - test option handling', function() {
149149 const statsSection = capturedText . findIndex ( x => x . includes ( 'statistics' ) ) ;
150150
151151 // totals
152- expect ( capturedText [ statsSection + 1 ] . match ( / \S + / g) [ 5 ] ) . toEqual ( '4 ' ) ;
153- expect ( capturedText [ statsSection + 2 ] . match ( / \S + / g) [ 5 ] ) . toEqual ( '8 ' ) ;
152+ expect ( capturedText [ statsSection + 1 ] . match ( / \S + / g) [ 5 ] ) . toEqual ( '5 ' ) ;
153+ expect ( capturedText [ statsSection + 2 ] . match ( / \S + / g) [ 5 ] ) . toEqual ( '7 ' ) ;
154154
155155 // errors
156156 expect ( capturedText [ statsSection + 4 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '2' ) ;
157- expect ( capturedText [ statsSection + 4 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(50 %)' ) ;
157+ expect ( capturedText [ statsSection + 4 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(40 %)' ) ;
158158
159159 expect ( capturedText [ statsSection + 5 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
160- expect ( capturedText [ statsSection + 5 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(25 %)' ) ;
160+ expect ( capturedText [ statsSection + 5 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(20 %)' ) ;
161161
162162 expect ( capturedText [ statsSection + 6 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
163- expect ( capturedText [ statsSection + 6 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(25 %)' ) ;
163+ expect ( capturedText [ statsSection + 6 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(20 %)' ) ;
164164
165- // warnings
166- expect ( capturedText [ statsSection + 9 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '2' ) ;
167- expect ( capturedText [ statsSection + 9 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(25%)' ) ;
165+ expect ( capturedText [ statsSection + 7 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
166+ expect ( capturedText [ statsSection + 7 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(20%)' ) ;
168167
169- expect ( capturedText [ statsSection + 10 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
170- expect ( capturedText [ statsSection + 10 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(13%)' ) ;
168+ // warnings
169+ expect ( capturedText [ statsSection + 10 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '2' ) ;
170+ expect ( capturedText [ statsSection + 10 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(29%)' ) ;
171171
172172 expect ( capturedText [ statsSection + 11 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
173- expect ( capturedText [ statsSection + 11 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(13 %)' ) ;
173+ expect ( capturedText [ statsSection + 11 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(14 %)' ) ;
174174
175175 expect ( capturedText [ statsSection + 12 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
176- expect ( capturedText [ statsSection + 12 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(13 %)' ) ;
176+ expect ( capturedText [ statsSection + 12 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(14 %)' ) ;
177177
178178 expect ( capturedText [ statsSection + 13 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
179- expect ( capturedText [ statsSection + 13 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(13 %)' ) ;
179+ expect ( capturedText [ statsSection + 13 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(14 %)' ) ;
180180
181181 expect ( capturedText [ statsSection + 14 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
182- expect ( capturedText [ statsSection + 14 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(13 %)' ) ;
182+ expect ( capturedText [ statsSection + 14 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(14 %)' ) ;
183183
184184 expect ( capturedText [ statsSection + 15 ] . match ( / \S + / g) [ 0 ] ) . toEqual ( '1' ) ;
185- expect ( capturedText [ statsSection + 15 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(13 %)' ) ;
185+ expect ( capturedText [ statsSection + 15 ] . match ( / \S + / g) [ 1 ] ) . toEqual ( '(14 %)' ) ;
186186 } ) ;
187187
188188 it ( 'should not print statistics report by default' , async function ( ) {
0 commit comments