fix: test activity calendar tests failing in 2025 (@fehmer)

This commit is contained in:
Christian Fehmer 2025-01-02 15:23:34 +01:00
parent 3a0313026a
commit 22568cb51e
No known key found for this signature in database
GPG key ID: FE53784A69964062

View file

@ -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],