diff --git a/CHANGELOG.md b/CHANGELOG.md index c74ba478..0e0b1e2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ Thanks to: @dathbe. - [core] Update dependencies including electron to v37 (#3831) +### Fixed + +- [calendar] Fixed broken unittest that only broke at 1st of july and 1st of january (#3830) + ## [2.32.0] - 2025-07-01 Thanks to: @bughaver, @bugsounet, @khassel, @KristjanESPERANTO, @plebcity, @rejas, @sdetweil. diff --git a/tests/unit/modules/default/calendar/calendar_fetcher_utils_spec.js b/tests/unit/modules/default/calendar/calendar_fetcher_utils_spec.js index 05c2f60f..fe3e1261 100644 --- a/tests/unit/modules/default/calendar/calendar_fetcher_utils_spec.js +++ b/tests/unit/modules/default/calendar/calendar_fetcher_utils_spec.js @@ -10,7 +10,7 @@ describe("Calendar fetcher utils test", () => { excludedEvents: [], includePastEvents: false, maximumEntries: 10, - maximumNumberOfDays: 365 + maximumNumberOfDays: 367 }; describe("filterEvents", () => { @@ -53,7 +53,6 @@ describe("Calendar fetcher utils test", () => { expect(filteredEvents[1].title).toBe("upcomingEvent"); }); - /* it("should return the correct times when recurring events pass through daylight saving time", () => { const data = ical.parseICS(`BEGIN:VEVENT DTSTART;TZID=Europe/Amsterdam:20250311T090000 @@ -87,7 +86,6 @@ END:VEVENT`); expect(januaryFirst[0].startDate).toEqual(januaryMoment.format("x")); expect(julyFirst[0].startDate).toEqual(julyMoment.format("x")); }); -*/ it("should return the correct moments based on the timezone given", () => { const data = ical.parseICS(`BEGIN:VEVENT