Skip to content

Commit a891299

Browse files
committed
version bump
1 parent 36d6218 commit a891299

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/client/context/RDTContext.test.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
REMIX_DEV_TOOLS_SETTINGS,
1313
REMIX_DEV_TOOLS_DETACHED,
1414
REMIX_DEV_TOOLS_CHECK_DETACHED,
15-
} from '../utils/storage.js';
16-
import { initialState } from './rdtReducer.js';
15+
} from '../utils/storage.js';
1716
import * as detachedMethods from '../utils/detached.js';
1817

1918
vi.mock("@remix-run/react", () => ({
@@ -66,12 +65,12 @@ describe("getSettings", () => {
6665
vi.clearAllMocks();
6766
});
6867

69-
it("should return default settings when storage is empty", () => {
68+
it("should return no settings when storage is empty", () => {
7069
vi.spyOn(localStorage, "getItem").mockReturnValueOnce(null);
7170

7271
const settings = getSettings();
7372

74-
expect(settings).toEqual(initialState.settings);
73+
expect(settings).toEqual({});
7574
});
7675

7776
it("should return merged settings when storage has values", () => {
@@ -83,10 +82,7 @@ describe("getSettings", () => {
8382

8483
const settings = getSettings();
8584

86-
expect(settings).toEqual({
87-
...initialState.settings,
88-
...storedSettings,
89-
});
85+
expect(settings).toEqual(storedSettings);
9086
});
9187
});
9288

0 commit comments

Comments
 (0)