Skip to content

Commit a7edc8d

Browse files
rc
1 parent 24bc14a commit a7edc8d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "2.4.2-rc.2",
3+
"version": "2.4.2-rc.3",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

src/storages/inLocalStorage/__tests__/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)