mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
test(measurements): call the fire-and-forget mock with a starter function
This commit is contained in:
1 parent
cf37f833e8
commit
89b6189206
1 file changed
+2
-1
@@ -57,7 +57,8 @@ vi.mock("@/lib/logging/context", async (importOriginal) => ({
|
||||
annotate: vi.fn(),
|
||||
}));
|
||||
vi.mock("@/lib/logging/fire-and-forget", () => ({
|
||||
fireAndForget: (promise: Promise<unknown>) => void promise.catch(() => {}),
|
||||
fireAndForget: (start: () => Promise<unknown>) =>
|
||||
void start().catch(() => {}),
|
||||
}));
|
||||
vi.mock("@/lib/crypto/note-cipher", () => ({
|
||||
encryptNote: vi.fn(() => null),
|
||||
|
||||
Reference in new issue
Block a user