@@ -27,7 +27,7 @@ describe('IN LOCAL STORAGE', () => {
2727 fakeInMemoryStorageFactory . mockClear ( ) ;
2828 } ) ;
2929
30- test ( 'calls InMemoryStorage factory if LocalStorage API is not available or the provided storage wrapper is invalid' , ( ) => {
30+ test ( 'fallback to InMemoryStorage if LocalStorage API is not available or the provided storage wrapper is invalid' , ( ) => {
3131 // Delete global localStorage property
3232 const originalLocalStorage = Object . getOwnPropertyDescriptor ( global , 'localStorage' ) ;
3333 Object . defineProperty ( global , 'localStorage' , { } ) ;
@@ -52,7 +52,7 @@ describe('IN LOCAL STORAGE', () => {
5252 Object . defineProperty ( global , 'localStorage' , originalLocalStorage as PropertyDescriptor ) ;
5353 } ) ;
5454
55- test ( 'calls its own storage factory if LocalStorage API is available' , ( ) => {
55+ test ( 'calls InLocalStorage if LocalStorage API is available' , ( ) => {
5656
5757 const storageFactory = InLocalStorage ( { prefix : 'prefix' } ) ;
5858 const storage = storageFactory ( internalSdkParams ) ;
@@ -61,7 +61,7 @@ describe('IN LOCAL STORAGE', () => {
6161 expect ( fakeInMemoryStorageFactory ) . not . toBeCalled ( ) ; // doesn't call InMemoryStorage factory
6262 } ) ;
6363
64- test ( 'calls its own storage factory if the provided storage wrapper is valid' , ( ) => {
64+ test ( 'calls InLocalStorage if the provided storage wrapper is valid' , ( ) => {
6565 storageAdapterSpy . mockClear ( ) ;
6666
6767 // Web Storages should not use the storageAdapter
0 commit comments