@@ -408,23 +408,23 @@ describe('OnyxUtils', () => {
408408 it ( 'should include the error in logs when out of storage with no evictable keys' , async ( ) => {
409409 const logAlertSpy = jest . spyOn ( Logger , 'logAlert' ) ;
410410 const logInfoSpy = jest . spyOn ( Logger , 'logInfo' ) ;
411- StorageMock . setItem = jest . fn ( ) . mockRejectedValue ( memoryError ) ;
411+ StorageMock . setItem = jest . fn ( ) . mockRejectedValue ( diskFullError ) ;
412412
413413 await Onyx . set ( ONYXKEYS . TEST_KEY , { test : 'data' } ) ;
414414
415- expect ( logAlertSpy ) . toHaveBeenCalledWith ( `Out of storage. But found no acceptable keys to remove. Error: ${ memoryError } ` ) ;
416- expect ( logInfoSpy ) . toHaveBeenCalledWith ( `Storage Quota Check -- bytesUsed: 0 bytesRemaining: Infinity. Original error: ${ memoryError } ` ) ;
415+ expect ( logAlertSpy ) . toHaveBeenCalledWith ( `Out of storage. But found no acceptable keys to remove. Error: ${ diskFullError } ` ) ;
416+ expect ( logInfoSpy ) . toHaveBeenCalledWith ( `Storage Quota Check -- bytesUsed: 0 bytesRemaining: Infinity. Original error: ${ diskFullError } ` ) ;
417417 } ) ;
418418
419419 it ( 'should include the error in logAlert when out of storage and getDatabaseSize fails' , async ( ) => {
420420 const dbSizeError = new Error ( 'Failed to estimate storage' ) ;
421421 const logAlertSpy = jest . spyOn ( Logger , 'logAlert' ) ;
422- StorageMock . setItem = jest . fn ( ) . mockRejectedValue ( memoryError ) ;
422+ StorageMock . setItem = jest . fn ( ) . mockRejectedValue ( diskFullError ) ;
423423 StorageMock . getDatabaseSize = jest . fn ( ) . mockRejectedValue ( dbSizeError ) ;
424424
425425 await Onyx . set ( ONYXKEYS . TEST_KEY , { test : 'data' } ) ;
426426
427- expect ( logAlertSpy ) . toHaveBeenCalledWith ( `Unable to get database size. getDatabaseSize error: ${ dbSizeError } . Original error: ${ memoryError } ` ) ;
427+ expect ( logAlertSpy ) . toHaveBeenCalledWith ( `Unable to get database size. getDatabaseSize error: ${ dbSizeError } . Original error: ${ diskFullError } ` ) ;
428428 } ) ;
429429
430430 it ( 'should not re-add an evicted key to recentlyAccessedKeys after removal' , async ( ) => {
0 commit comments