Skip to content

Commit

Permalink
Fixed overrideOnce URL's
Browse files Browse the repository at this point in the history
  • Loading branch information
cikzh committed Jul 29, 2024
1 parent 0b27d70 commit c0b9c54
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { pollingStationMock } from "@kiesraad/api-mocks";

describe("Test PollingStationChoiceForm", () => {
test("Form field entry", async () => {
overrideOnce("get", "/api/polling_stations/1", 200, pollingStationMock);
overrideOnce("get", "/api/elections/1/polling_stations", 200, pollingStationMock);
const user = userEvent.setup();

render(
Expand Down Expand Up @@ -37,7 +37,7 @@ describe("Test PollingStationChoiceForm", () => {
});

test("Selecting a valid polling station", async () => {
overrideOnce("get", "/api/polling_stations/1", 200, pollingStationMock);
overrideOnce("get", "/api/elections/1/polling_stations", 200, pollingStationMock);
const user = userEvent.setup();
render(
<PollingStationProvider electionId={1}>
Expand All @@ -53,7 +53,7 @@ describe("Test PollingStationChoiceForm", () => {
});

test("Selecting a non-existing polling station", async () => {
overrideOnce("get", "/api/polling_stations/1", 200, pollingStationMock);
overrideOnce("get", "/api/elections/1/polling_stations", 200, pollingStationMock);
const user = userEvent.setup();
render(
<PollingStationProvider electionId={1}>
Expand All @@ -71,7 +71,7 @@ describe("Test PollingStationChoiceForm", () => {
});

test("Polling station list", async () => {
overrideOnce("get", "/api/polling_stations/1", 200, pollingStationMock);
overrideOnce("get", "/api/elections/1/polling_stations", 200, pollingStationMock);
const user = userEvent.setup();

render(
Expand Down

0 comments on commit c0b9c54

Please sign in to comment.