File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,21 +277,16 @@ describe('OnyxUtils', () => {
277277 ...getRandomReportActions ( collectionKey , 1000 ) ,
278278 ...getRandomReportActions ( ONYXKEYS . COLLECTION . EVICTABLE_TEST_KEY , 1000 ) ,
279279 } ;
280+ const fakeMethodParameter = ( ) => false ;
281+ const fakePromiseMethodParameter = ( ) => Promise . resolve ( new Set ( Object . keys ( data ) ) ) ;
280282
281283 test ( 'one call adding 1k keys' , async ( ) => {
282- await measureAsyncFunction (
283- ( ) =>
284- OnyxCache . addEvictableKeysToRecentlyAccessedList (
285- ( ) => false ,
286- ( ) => Promise . resolve ( new Set ( Object . keys ( data ) ) ) ,
287- ) ,
288- {
289- beforeEach : async ( ) => {
290- await Onyx . multiSet ( data ) ;
291- } ,
292- afterEach : clearOnyxAfterEachMeasure ,
284+ await measureAsyncFunction ( ( ) => OnyxCache . addEvictableKeysToRecentlyAccessedList ( fakeMethodParameter , fakePromiseMethodParameter ) , {
285+ beforeEach : async ( ) => {
286+ await Onyx . multiSet ( data ) ;
293287 } ,
294- ) ;
288+ afterEach : clearOnyxAfterEachMeasure ,
289+ } ) ;
295290 } ) ;
296291 } ) ;
297292
You can’t perform that action at this time.
0 commit comments