Fix calendar unit test so it uses 1 day more than a full year for yearly recurring events test (#3833)

This commit is contained in:
Koen Konst 2025-07-02 22:03:41 +02:00 committed by GitHub
parent 3a2a52c864
commit d9e2e0272f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -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.

View File

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