Skip to content

Commit 4cd1ee4

Browse files
committed
Fix calendar unit test so it uses 1 day more than a full year for yearly recurring events test
1 parent 3a2a52c commit 4cd1ee4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)