Skip to content

Commit d9e2e02

Browse files
authored
Fix calendar unit test so it uses 1 day more than a full year for yearly recurring events test (#3833)
1 parent 3a2a52c commit d9e2e02

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Thanks to: @dathbe.
2121

2222
- [core] Update dependencies including electron to v37 (#3831)
2323

24+
### Fixed
25+
26+
- [calendar] Fixed broken unittest that only broke at 1st of july and 1st of january (#3830)
27+
2428
## [2.32.0] - 2025-07-01
2529

2630
Thanks to: @bughaver, @bugsounet, @khassel, @KristjanESPERANTO, @plebcity, @rejas, @sdetweil.

tests/unit/modules/default/calendar/calendar_fetcher_utils_spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("Calendar fetcher utils test", () => {
1010
excludedEvents: [],
1111
includePastEvents: false,
1212
maximumEntries: 10,
13-
maximumNumberOfDays: 365
13+
maximumNumberOfDays: 367
1414
};
1515

1616
describe("filterEvents", () => {
@@ -53,7 +53,6 @@ describe("Calendar fetcher utils test", () => {
5353
expect(filteredEvents[1].title).toBe("upcomingEvent");
5454
});
5555

56-
/*
5756
it("should return the correct times when recurring events pass through daylight saving time", () => {
5857
const data = ical.parseICS(`BEGIN:VEVENT
5958
DTSTART;TZID=Europe/Amsterdam:20250311T090000
@@ -87,7 +86,6 @@ END:VEVENT`);
8786
expect(januaryFirst[0].startDate).toEqual(januaryMoment.format("x"));
8887
expect(julyFirst[0].startDate).toEqual(julyMoment.format("x"));
8988
});
90-
*/
9189

9290
it("should return the correct moments based on the timezone given", () => {
9391
const data = ical.parseICS(`BEGIN:VEVENT

0 commit comments

Comments
 (0)