mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
test(insights): mock the list reader the ECG and rhythm reads now go through
This commit is contained in:
1 parent
e5b7eebe64
commit
2b8defcbd2
2 files changed
+2
No files matched your search
@@ -32,6 +32,7 @@ const apiGetMock = vi.fn();
|
||||
vi.mock("@/lib/api/api-fetch", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("@/lib/api/api-fetch")>()),
|
||||
apiGet: (...args: unknown[]) => apiGetMock(...args),
|
||||
apiGetList: (...args: unknown[]) => apiGetMock(...args),
|
||||
}));
|
||||
|
||||
const { EcgSection, ECG_OVERVIEW_LIMIT } = await import("../ecg-section");
|
||||
|
||||
@@ -32,6 +32,7 @@ const apiGetMock = vi.fn();
|
||||
vi.mock("@/lib/api/api-fetch", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("@/lib/api/api-fetch")>()),
|
||||
apiGet: (...args: unknown[]) => apiGetMock(...args),
|
||||
apiGetList: (...args: unknown[]) => apiGetMock(...args),
|
||||
}));
|
||||
|
||||
const { RhythmEventsCard } = await import("../rhythm-events-card");
|
||||
|
||||
Reference in new issue
Block a user