File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ describe('App', () => {
317
317
await flushPromises ( ) ;
318
318
expect ( setPropertySpy ) . toHaveBeenCalledWith ( '--text' , LightDarkModeCSSSettings . text . light ) ;
319
319
matchMedia . addListener . mock . calls [ 0 ] [ 0 ] . call ( wrapper . vm , { matches : true } ) ;
320
+ await wrapper . vm . $nextTick ( ) ;
320
321
expect ( setPropertySpy ) . toHaveBeenCalledTimes ( 2 ) ;
321
322
expect ( setPropertySpy ) . toHaveBeenCalledWith ( '--text' , LightDarkModeCSSSettings . text . dark ) ;
322
323
} ) ;
@@ -334,6 +335,7 @@ describe('App', () => {
334
335
expect ( setPropertySpy ) . toHaveBeenCalledTimes ( 1 ) ;
335
336
expect ( setPropertySpy ) . toHaveBeenCalledWith ( '--text' , 'light' ) ;
336
337
matchMedia . addListener . mock . calls [ 0 ] [ 0 ] . call ( wrapper . vm , { matches : true } ) ;
338
+ await wrapper . vm . $nextTick ( ) ;
337
339
expect ( removePropertySpy ) . toHaveBeenCalledTimes ( 2 ) ;
338
340
expect ( removePropertySpy ) . toHaveBeenLastCalledWith ( '--text' ) ;
339
341
expect ( setPropertySpy ) . toHaveBeenCalledWith ( '--text' , 'dark' ) ;
You can’t perform that action at this time.
0 commit comments