Skip to content

Commit

Permalink
test: fix tests being broken in 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Jan 2, 2025
1 parent a2f6c1f commit c73c417
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/__tests__/elements/test-activity-calendar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,9 @@ describe("test-activity-calendar.ts", () => {
});
describe("getFullYearCalendar", () => {
it("gets calendar", () => {
const date = new Date(2024, 8, 1);
vi.setSystemTime(date);

//GIVEN
const lastDate = getDate("2024-01-02");
const calendar = new ModifiableTestActivityCalendar(
Expand Down Expand Up @@ -816,6 +819,8 @@ describe("test-activity-calendar.ts", () => {
});
describe("getTotalTests", () => {
it("gets amount of tests", () => {
const date = new Date(2024, 8, 1);
vi.setSystemTime(date);
//GIVEN
const lastDate = getDate("2024-01-02");
const calendar = new ModifiableTestActivityCalendar(
Expand Down

0 comments on commit c73c417

Please sign in to comment.