Skip to content

Commit

Permalink
pass headers to mock service worker (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
cquirosj authored May 23, 2024
1 parent 535a5e0 commit 047d5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Frontend/test/mock-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ export const makeMockEndpoint =
headers?: { [key: string]: string };
}
) => {
mockServer.use(http[method](endpoint, () => HttpResponse.json(body, { status: status })));
mockServer.use(http[method](endpoint, () => HttpResponse.json(body, { status: status, headers: headers })));
};

0 comments on commit 047d5d1

Please sign in to comment.