File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ describe("Calendar Links", () => {
79
79
const eTime = dayjs ( event . start ) . add ( 2 , "hour" ) . utc ( ) . format ( TimeFormats . dateTimeUTC ) ;
80
80
const expectedDates = encodeURIComponent ( `${ sTime } /${ eTime } ` ) ;
81
81
expect ( link ) . toBe (
82
- `https://calendar.google.com/calendar/render?action=TEMPLATE&dates=${ expectedDates } &recur=FREQ %3DYEARLY%3BINTERVAL%3D1&text=Birthday%20party`
82
+ `https://calendar.google.com/calendar/render?action=TEMPLATE&dates=${ expectedDates } &recur=RRULE%3AFREQ %3DYEARLY%3BINTERVAL%3D1&text=Birthday%20party`
83
83
) ;
84
84
} ) ;
85
85
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const google = (calendarEvent: CalendarEvent): string => {
48
48
location : event . location ,
49
49
trp : event . busy ,
50
50
dates : start + "/" + end ,
51
- recur : event . rRule ,
51
+ recur : event . rRule ? "RRULE:" + event . rRule : undefined ,
52
52
} ;
53
53
if ( event . guests && event . guests . length ) {
54
54
details . add = event . guests . join ( ) ;
You can’t perform that action at this time.
0 commit comments