From 22568cb51e4a8526101b48f0fd6f5a50dfb89359 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Thu, 2 Jan 2025 15:23:34 +0100 Subject: [PATCH] fix: test activity calendar tests failing in 2025 (@fehmer) --- frontend/__tests__/elements/test-activity-calendar.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/__tests__/elements/test-activity-calendar.spec.ts b/frontend/__tests__/elements/test-activity-calendar.spec.ts index 048fca01e..0c2222a01 100644 --- a/frontend/__tests__/elements/test-activity-calendar.spec.ts +++ b/frontend/__tests__/elements/test-activity-calendar.spec.ts @@ -787,6 +787,9 @@ describe("test-activity-calendar.ts", () => { describe("getFullYearCalendar", () => { it("gets calendar", () => { //GIVEN + //set today + vi.setSystemTime(getDate("2024-12-01")); + const lastDate = getDate("2024-01-02"); const calendar = new ModifiableTestActivityCalendar( [1, 2, 3, 4], @@ -817,6 +820,9 @@ describe("test-activity-calendar.ts", () => { describe("getTotalTests", () => { it("gets amount of tests", () => { //GIVEN + //set today + vi.setSystemTime(getDate("2024-12-01")); + const lastDate = getDate("2024-01-02"); const calendar = new ModifiableTestActivityCalendar( [1, 2, 3, 4],