Skip to content

Commit fdfff90

Browse files
committed
test(settings): remove invalid checkpoints default assertion
1 parent 8449c27 commit fdfff90

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

webview-ui/src/components/settings/__tests__/SettingsView.spec.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -443,28 +443,6 @@ describe("SettingsView - Sound Settings", () => {
443443
)
444444
})
445445

446-
it("defaults checkpoints to false when state omits the field", () => {
447-
const { activateTab, getSettingsContent } = renderSettingsView()
448-
mockPostMessage({ enableCheckpoints: undefined })
449-
450-
activateTab("notifications")
451-
const soundCheckbox = within(getSettingsContent()).getByTestId("sound-enabled-checkbox")
452-
fireEvent.click(soundCheckbox)
453-
fireEvent.click(screen.getByTestId("save-button"))
454-
455-
const postMessageMock = vscode.postMessage as unknown as {
456-
mock: { calls: Array<[any]> }
457-
}
458-
expect(
459-
postMessageMock.mock.calls.some(
460-
([message]) =>
461-
message?.type === "updateSettings" &&
462-
message.updatedSettings?.soundEnabled === true &&
463-
message.updatedSettings?.enableCheckpoints === false,
464-
),
465-
).toBe(true)
466-
})
467-
468446
it("shows tts slider when sound is enabled", () => {
469447
// Render once and get the activateTab helper
470448
const { activateTab, getSettingsContent } = renderSettingsView()

0 commit comments

Comments
 (0)