Skip to content

Commit

Permalink
Fiks mock ok status
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-nom committed Feb 4, 2025
1 parent c4b3e8c commit 6115e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/fetch/apiFetchMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const fetchFraApiMock: typeof fetchFraApi = async (_1, path, _2, body) =>
const mockResponse = (status: number, body: any) =>
({
status,
ok: status >= 200,
ok: status >= 200 && status < 300,
json: () => body,
}) as unknown as ReturnType<typeof fetchFraApiMock>;

Expand Down

0 comments on commit 6115e45

Please sign in to comment.