Skip to content

Commit

Permalink
fix directory page tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matejoslav committed Jan 15, 2024
1 parent 215b823 commit e474579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-app/src/pages/directory/directoryPage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jest.mock("../../services/therapists.service");
const getTherapistsSpy = jest.spyOn(therapistService, "getTherapists");
const getTherapistsLocationsSpy = jest.spyOn(
therapistService,
"getTherapistsLocations"
"getTherapistLocations"
);

Date.now = jest.fn(() => 1482363367071);
Expand Down Expand Up @@ -96,6 +96,7 @@ describe("the DirectoryPage component", () => {
getTherapistsLocationsSpy.mockResolvedValue(mockLocationsResponse);
const { getByTestId } = render(<DirectoryPage />);

await wait();
fireEvent.click(getByTestId("sidebar"));

await wait();
Expand Down

0 comments on commit e474579

Please sign in to comment.