Skip to content

Commit 3c9ac7f

Browse files
committed
✅ Add tests for localStorage in Session Store
1 parent 0e815f7 commit 3c9ac7f

File tree

5 files changed

+252
-218
lines changed

5 files changed

+252
-218
lines changed

packages/core/src/domain/session/sessionLocalStorageStore.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('session local storage store', () => {
1414
})
1515

1616
it('should report local storage as not available', () => {
17-
spyOn(localStorage, 'getItem').and.throwError('Unavailable')
17+
spyOn(Storage.prototype, 'getItem').and.throwError('Unavailable')
1818
const localStorageStore = initLocalStorage({})
1919
expect(localStorageStore).not.toBeDefined()
2020
})

0 commit comments

Comments
 (0)