mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
test(restore): stub the reading count the restore budget now reads
This commit is contained in:
1 parent
93b6c086b4
commit
d44b875ec6
1 file changed
+1
@@ -35,6 +35,7 @@ vi.mock("@/lib/db", () => ({
|
||||
prisma: {
|
||||
dataBackup: { findUnique: vi.fn() },
|
||||
user: { findUnique: vi.fn() },
|
||||
measurement: { count: vi.fn().mockResolvedValue(0) },
|
||||
$transaction: mocks.transaction,
|
||||
},
|
||||
toJson: <T>(value: T) => value,
|
||||
|
||||
Reference in new issue
Block a user