test(Google Calendar Node): Fix unit test depending on current timestamp (#22522)

This commit is contained in:
Suguru Inoue 2025-12-01 11:30:43 +01:00 committed by GitHub
parent 75b2cd0de6
commit 20f5bdc4e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -591,7 +591,7 @@ describe('addNextOccurrence', () => {
{
start: { dateTime: '2025-01-01T10:00:00Z', date: '2025-01-01' },
end: { dateTime: '2025-01-01T11:00:00Z', date: '2025-01-01' },
recurrence: ['RRULE:FREQ=DAILY;UNTIL=20251231T235959Z'],
recurrence: ['RRULE:FREQ=DAILY;UNTIL=20501231T235959Z'],
},
];
@ -609,7 +609,7 @@ describe('addNextOccurrence', () => {
{
start: { dateTime: '2025-01-01T10:00:00Z', date: '2025-01-01' },
end: { dateTime: '2025-01-01T11:00:00Z', date: '2025-01-01' },
recurrence: ['RRULE:FREQ=WEEKLY;BYDAY=SU;UNTIL=20251231T235959Z'],
recurrence: ['RRULE:FREQ=WEEKLY;BYDAY=SU;UNTIL=20501231T235959Z'],
},
];
@ -623,7 +623,7 @@ describe('addNextOccurrence', () => {
{
start: { date: '2025-01-01' },
end: { date: '2025-01-02' },
recurrence: ['RRULE:FREQ=MONTHLY;BYMONTHDAY=1;UNTIL=20251231T235959Z'],
recurrence: ['RRULE:FREQ=MONTHLY;BYMONTHDAY=1;UNTIL=20501231T235959Z'],
},
];
@ -641,7 +641,7 @@ describe('addNextOccurrence', () => {
timeZone: 'America/New_York',
},
end: { dateTime: '2025-01-01T11:00:00Z', date: '2025-01-01', timeZone: 'America/New_York' },
recurrence: ['RRULE:FREQ=DAILY;UNTIL=20251231T235959Z'],
recurrence: ['RRULE:FREQ=DAILY;UNTIL=20501231T235959Z'],
},
];