test: add variation test for WORKWEEKSTART
All checks were successful
Build SilverBullet Plug / build (push) Successful in 1m5s

This commit is contained in:
2026-02-21 13:56:02 -08:00
parent 4ba1e9aee6
commit 0e2e5c9699

View File

@@ -56,6 +56,23 @@ Deno.test("Variation: Recurring Weekly (Multi-day: MO,TU,WE,TH,FR)", () => {
assert(results.some(r => r.start.includes("2026-01-20"))); // Tuesday
});
Deno.test("Variation: Recurring with WORKWEEKSTART (Outlook style)", () => {
const icsEvent = {
summary: "Outlook Style Meeting",
start: "2026-01-20T08:30:00",
rrule: {
frequency: "WEEKLY",
interval: 1,
byday: "TU",
workweekstart: "MO"
}
};
const results = expandRecurrences(icsEvent, 30, TEST_NOW);
assert(results.length > 0);
assert(results[0].start.includes("2026-01-20"));
});
Deno.test("Variation: Recurring with EXDATE (Exclusion)", () => {
const icsEvent = {
summary: "HPE-Veeam check-in",