Fix creating and deleting calendars

This fixes the creation and deletion of calendars to include a color and the proper chosen name.
This commit is contained in:
Bruno Bernardino
2025-09-06 19:17:48 +01:00
parent 24944de0f6
commit 49dbc724c8
8 changed files with 30 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ import { assertMatch } from 'std/assert/assert_match.ts';
import { Calendar, CalendarEvent } from '/lib/models/calendar.ts';
import {
CALENDAR_COLOR_OPTIONS,
convertRRuleToWords,
generateVCalendar,
generateVEvent,
@@ -29,7 +30,7 @@ Deno.test('that getColorAsHex works', () => {
];
for (const test of tests) {
const output = getColorAsHex(test.input);
const output = getColorAsHex(test.input as typeof CALENDAR_COLOR_OPTIONS[number]);
assertEquals(output, test.expected);
}
});