[#78] added tests

This commit is contained in:
Camille Moussu
2025-09-09 10:25:28 +02:00
parent b87b77beef
commit 94a18dd845
3 changed files with 94 additions and 4 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export default function EventDisplayModal({
const [repetition, setRepetition] = useState<RepetitionObject>(
event.repetition ?? ({} as RepetitionObject)
);
const [alarm, setAlarm] = useState(event.alarm.trigger);
const [alarm, setAlarm] = useState(event?.alarm?.trigger ?? "");
const [busy, setBusy] = useState("");
const [eventClass, setEventClass] = useState(event?.class ?? "PUBLIC");
const [timezone, setTimezone] = useState(event?.timezone ?? "UTC");
-1
View File
@@ -105,7 +105,6 @@ export function parseCalendarEvent(
}
if (valarm) {
console.log(valarm);
event.alarm = {} as AlarmObject;
for (const [key, params, type, value] of valarm[1]) {
switch (key.toLowerCase()) {