Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
fix: tests were failing now that day advanced
Browse files Browse the repository at this point in the history
  • Loading branch information
bensandee committed Apr 12, 2024
1 parent 2e44cf9 commit 6c305a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Events.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Events } from ".";
import { AuthProvider } from "../common";
import { MemoryRouter } from "react-router-dom";
import { BikeWeekEvent } from "../api/contract";
import { parseJSON } from "date-fns";

vi.mock("./common", () => ({
useAuth: () => {
Expand All @@ -29,8 +30,8 @@ vi.mock("../api/events", () => {
eventTypes: [],
eventDays: [],
eventTimes: [],
modifyDate: new Date(),
createDate: new Date(),
modifyDate: parseJSON("2024-04-08T12:00:00"),
createDate: parseJSON("2024-04-08T12:00:00"),
},
];
},
Expand Down

0 comments on commit 6c305a8

Please sign in to comment.