mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
test(sheets): give the mocked sheet its dirty check
The capture picker and the mood page import `sheetBodyHasUnsavedInput` from the sheet module now, and two tests that replace that module with a stub failed on the missing export.
This commit is contained in:
1 parent
3a249bccba
commit
177e85f9c3
2 files changed
+2
No files matched your search
@@ -46,6 +46,7 @@ vi.mock("@/lib/i18n/context", () => ({
|
||||
vi.mock("@/components/ui/responsive-sheet", () => ({
|
||||
ResponsiveSheet: ({ open }: { open: boolean; children?: ReactNode }) =>
|
||||
open ? <div data-slot="mood-sheet-open" /> : null,
|
||||
sheetBodyHasUnsavedInput: () => false,
|
||||
}));
|
||||
vi.mock("@/components/mood/mood-form", () => ({ MoodForm: () => null }));
|
||||
vi.mock("@/components/mood/mood-list", () => ({ MoodList: () => null }));
|
||||
|
||||
Reference in new issue
Block a user