mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
test(sync): give the module-gate double the mirror walk's token lookup
The walk now asks the token table first; the route test's Prisma double answers it with no switched token.
This commit is contained in:
1 parent
cc284c4307
commit
0f9ee08a48
1 file changed
+2
@@ -22,6 +22,8 @@ vi.mock("@/lib/modules/gate", () => ({ isModuleEnabled: vi.fn() }));
|
||||
vi.mock("@/lib/db", () => ({
|
||||
prisma: {
|
||||
measurement: { findMany: vi.fn() },
|
||||
// The mirror walk's token lookup: no token switched, so no walk.
|
||||
apiToken: { findMany: vi.fn(async () => []) },
|
||||
moodEntry: { findMany: vi.fn() },
|
||||
medicationIntakeEvent: { findMany: vi.fn() },
|
||||
cycleDayLog: { findMany: vi.fn() },
|
||||
|
||||
Reference in new issue
Block a user