import { fromWallTime } from "@/lib/dates"; import type { CalendarEvent } from "@/lib/types"; /** A plain, published, timed event; override what the test is about. Test-only. */ export const makeEvent = (overrides: Partial = {}): CalendarEvent => ({ eventId: 1, calendarId: 1, uuid: "uuid-1", name: "Konzert", description: "", start: fromWallTime("2026-10-03", "19:00"), end: fromWallTime("2026-10-03", "21:00"), created: new Date("2026-01-01T12:00:00Z"), lastModified: null, location: "Karlsruhe", createdBy: "", lastModifiedBy: "", url: "", wholeDay: false, repeatFrequency: "", status: "PUBLIC", ...overrides, });