@@ -27,7 +27,7 @@ describe('IN LOCAL STORAGE', () => {
27
27
fakeInMemoryStorageFactory . mockClear ( ) ;
28
28
} ) ;
29
29
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' , ( ) => {
31
31
// Delete global localStorage property
32
32
const originalLocalStorage = Object . getOwnPropertyDescriptor ( global , 'localStorage' ) ;
33
33
Object . defineProperty ( global , 'localStorage' , { } ) ;
@@ -52,7 +52,7 @@ describe('IN LOCAL STORAGE', () => {
52
52
Object . defineProperty ( global , 'localStorage' , originalLocalStorage as PropertyDescriptor ) ;
53
53
} ) ;
54
54
55
- test ( 'calls its own storage factory if LocalStorage API is available' , ( ) => {
55
+ test ( 'calls InLocalStorage if LocalStorage API is available' , ( ) => {
56
56
57
57
const storageFactory = InLocalStorage ( { prefix : 'prefix' } ) ;
58
58
const storage = storageFactory ( internalSdkParams ) ;
@@ -61,7 +61,7 @@ describe('IN LOCAL STORAGE', () => {
61
61
expect ( fakeInMemoryStorageFactory ) . not . toBeCalled ( ) ; // doesn't call InMemoryStorage factory
62
62
} ) ;
63
63
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' , ( ) => {
65
65
storageAdapterSpy . mockClear ( ) ;
66
66
67
67
// Web Storages should not use the storageAdapter
0 commit comments