@@ -140,8 +140,8 @@ describe('format', () => {
140140 report : '<!doctype html>\n' + '<html lang="en">Hi</html>\n' ,
141141 } ) ;
142142
143- it ( 'should return formatted results' , ( ) => {
144- expect ( formatResults ( { results : getResults ( ) , thresholds : { } } ) ) . toEqual ( {
143+ it ( 'should return formatted results' , async ( ) => {
144+ expect ( await formatResults ( { results : getResults ( ) , thresholds : { } } ) ) . toEqual ( {
145145 details : {
146146 formFactor : undefined ,
147147 installable : false ,
@@ -154,11 +154,11 @@ describe('format', () => {
154154 } ) ;
155155 } ) ;
156156
157- it ( 'should return formatted results with passing thresholds' , ( ) => {
157+ it ( 'should return formatted results with passing thresholds' , async ( ) => {
158158 const thresholds = {
159159 performance : 0.1 ,
160160 } ;
161- const formattedResults = formatResults ( {
161+ const formattedResults = await formatResults ( {
162162 results : getResults ( ) ,
163163 thresholds,
164164 } ) ;
@@ -173,11 +173,11 @@ describe('format', () => {
173173 ] ) ;
174174 } ) ;
175175
176- it ( 'should return formatted results with failing thresholds' , ( ) => {
176+ it ( 'should return formatted results with failing thresholds' , async ( ) => {
177177 const thresholds = {
178178 performance : 1 ,
179179 } ;
180- const formattedResults = formatResults ( {
180+ const formattedResults = await formatResults ( {
181181 results : getResults ( ) ,
182182 thresholds,
183183 } ) ;
@@ -197,7 +197,7 @@ describe('format', () => {
197197 ] ) ;
198198 } ) ;
199199
200- it ( 'should use supplied config settings and data to populate `details`' , ( ) => {
200+ it ( 'should use supplied config settings and data to populate `details`' , async ( ) => {
201201 const results = getResults ( ) ;
202202 results . lhr . configSettings = {
203203 locale : 'es' ,
@@ -208,7 +208,7 @@ describe('format', () => {
208208 score : 1 ,
209209 } ;
210210
211- const formattedResults = formatResults ( { results, thresholds : { } } ) ;
211+ const formattedResults = await formatResults ( { results, thresholds : { } } ) ;
212212 expect ( formattedResults . details ) . toEqual ( {
213213 formFactor : 'desktop' ,
214214 installable : true ,
0 commit comments