Skip to content

Commit 42efc45

Browse files
committed
Fix mock so usercan doesn't error in db tests
1 parent c53c390 commit 42efc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/__tests__/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const mockServerCode = async () => {
1212

1313
return {
1414
testDb,
15-
getLoginData: vi.fn(),
15+
getLoginData: vi.fn(() => ({ user: { isSuperAdmin: false } })),
1616
findCommunityBySlug: vi.fn(),
1717
};
1818
});

0 commit comments

Comments
 (0)