Skip to content

Commit

Permalink
test: fix /api/onboarding/request
Browse files Browse the repository at this point in the history
  • Loading branch information
Matéo Mévollon committed Nov 3, 2022
1 parent da51eaf commit e88ac2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion __tests__/api/onboarding/request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { server } from "@/mocks/server"
jest.mock("@/utils/log-action", () => jest.fn())
jest.mock("@/utils/jwt", () => ({ getJwt: jest.fn() }))
jest.mock("@/utils/send-email", () => ({
sendRequestMail: jest.fn(),
sendRequestMail: jest.fn(() => ({
status: 200,
text: () => Promise.resolve("response"),
})),
}))
jest.mock("@/utils/env", () => ({
NEXTAUTH_URL: "http://fake.fr",
Expand Down

0 comments on commit e88ac2e

Please sign in to comment.