Skip to content

Commit

Permalink
- Fiks mock i test
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaegrov committed Oct 3, 2023
1 parent fa1a470 commit 260307c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/aktivitet-modal/AktivitetModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ describe("AktivitetModal", () => {

test("burde vise feilmelding hvis det er feil i backenden når vi lagrer aktivitet", async () => {
const actionFn = vi.fn(async ({ request }) => {
return json({ aktivitetError: true });
return json({
status: "error",
error: { statusCode: 500, statusText: "Server error" },
});
});

const TestComponent = () => {
Expand Down

0 comments on commit 260307c

Please sign in to comment.