@@ -45,12 +45,16 @@ describe('lighthousePlugin with failed threshold run (onPostBuild)', () => {
45
45
'- PWA: 30' ,
46
46
] ;
47
47
48
- await lighthousePlugin ( { fail_deploy_on_score_thresholds : 'true' } ) . onPostBuild ( { utils : mockUtils } ) ;
48
+ await lighthousePlugin ( {
49
+ fail_deploy_on_score_thresholds : 'true' ,
50
+ } ) . onPostBuild ( { utils : mockUtils } ) ;
49
51
expect ( formatMockLog ( console . log . mock . calls ) ) . toEqual ( logs ) ;
50
52
} ) ;
51
53
52
54
it ( 'should not output expected success payload' , async ( ) => {
53
- await lighthousePlugin ( { fail_deploy_on_score_thresholds : 'true' } ) . onPostBuild ( { utils : mockUtils , } ) ;
55
+ await lighthousePlugin ( {
56
+ fail_deploy_on_score_thresholds : 'true' ,
57
+ } ) . onPostBuild ( { utils : mockUtils } ) ;
54
58
expect ( mockUtils . status . show ) . not . toHaveBeenCalledWith ( ) ;
55
59
} ) ;
56
60
@@ -67,7 +71,9 @@ describe('lighthousePlugin with failed threshold run (onPostBuild)', () => {
67
71
" 'Manifest doesn't have a maskable icon' received a score of 0" ,
68
72
] ;
69
73
70
- await lighthousePlugin ( { fail_deploy_on_score_thresholds : 'true' } ) . onPostBuild ( { utils : mockUtils } ) ;
74
+ await lighthousePlugin ( {
75
+ fail_deploy_on_score_thresholds : 'true' ,
76
+ } ) . onPostBuild ( { utils : mockUtils } ) ;
71
77
const resultError = console . error . mock . calls [ 0 ] [ 0 ] ;
72
78
expect ( stripAnsi ( resultError ) . split ( '\n' ) . filter ( Boolean ) ) . toEqual ( error ) ;
73
79
} ) ;
@@ -99,7 +105,9 @@ describe('lighthousePlugin with failed threshold run (onPostBuild)', () => {
99
105
] ,
100
106
} ;
101
107
102
- await lighthousePlugin ( { fail_deploy_on_score_thresholds : 'true' } ) . onPostBuild ( { utils : mockUtils } ) ;
108
+ await lighthousePlugin ( {
109
+ fail_deploy_on_score_thresholds : 'true' ,
110
+ } ) . onPostBuild ( { utils : mockUtils } ) ;
103
111
const [ resultMessage , resultPayload ] =
104
112
mockUtils . build . failBuild . mock . calls [ 0 ] ;
105
113
0 commit comments