File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -152,13 +152,13 @@ describe('unifont', () => {
152152 await unifontA . resolveFont ( 'Poppins' )
153153 await unifontB . resolveFont ( 'Poppins' )
154154
155- const provider1CacheKey = storage . setItem . mock . calls . at ( 0 ) ?. at ( 0 ) as string | undefined
156- const provider2CacheKey = storage . setItem . mock . calls . at ( 1 ) ?. at ( 0 ) as string | undefined
155+ const providerACacheKey = storage . setItem . mock . calls . at ( 0 ) ?. at ( 0 ) as string | undefined
156+ const providerBCacheKey = storage . setItem . mock . calls . at ( 1 ) ?. at ( 0 ) as string | undefined
157157
158158 expect ( storage . setItem ) . toHaveBeenCalledTimes ( 2 )
159- expect ( provider1CacheKey ) . toBeDefined ( )
160- expect ( provider2CacheKey ) . toBeDefined ( )
161- expect ( provider1CacheKey ) . not . toBe ( provider2CacheKey )
159+ expect ( providerACacheKey ) . toBeDefined ( )
160+ expect ( providerBCacheKey ) . toBeDefined ( )
161+ expect ( providerACacheKey ) . not . toBe ( providerBCacheKey )
162162 } )
163163
164164 it ( 'uses isolated storage per provider\'s options' , async ( ) => {
You can’t perform that action at this time.
0 commit comments