Skip to content

Commit

Permalink
mock prisma network_members
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Sep 14, 2024
1 parent 7988bf5 commit a06772a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ describe("Update Network Members", () => {
networkMembers: [{ id: "memberId" }],
});

prisma.network_members.findUnique = jest.fn().mockResolvedValue({
id: "memberId",
authorized: false,
});

// mock the token
prisma.aPIToken.findUnique = jest.fn().mockResolvedValue({
expiresAt: new Date(),
Expand Down

0 comments on commit a06772a

Please sign in to comment.