fix(icalendar): Support object rrule by converting to string

This commit is contained in:
2026-02-20 11:37:48 -08:00
parent 6b12c26497
commit 426d6d1dc6
2 changed files with 19 additions and 10 deletions

View File

@@ -196,13 +196,13 @@ Deno.test("expandRecurrences - object rrule (Reproduction of missing events)", (
try {
const results = expandRecurrences(icsEvent, 30);
// Currently, it returns [icsEvent] (length 1) and logs a warning.
// This confirms that it is NOT expanding it.
assertEquals(results.length, 1);
// Should now return multiple occurrences
assert(results.length > 1, `Expected > 1 occurrences, got ${results.length}`);
assertEquals(results[0].recurrent, true);
} finally {
console.warn = originalConsoleWarn;
}
assert(warningLogged, "Should have logged a warning for object rrule");
assert(!warningLogged, "Should NOT have logged a warning for object rrule");
});