test: update issue #695 test to use date-only format for all-day events

This commit is contained in:
callumalpass 2025-10-07 07:27:43 +11:00
parent a7ed12b49e
commit 8622bfb3e0

View file

@ -12,13 +12,15 @@ describe('Issue #695 - Agenda all-day ICS duplication', () => {
const localStart = new Date(2025, 1, 20); // Feb 20, 2025
const localEndExclusive = new Date(2025, 1, 21); // Feb 21, 2025 (exclusive end)
// All-day events are now stored as date-only strings (YYYY-MM-DD)
// to preserve calendar date semantics without timezone ambiguity
const events: ICSEvent[] = [
{
id: 'sub-uid',
subscriptionId: 'sub',
title: 'All day test',
start: localStart.toISOString(),
end: localEndExclusive.toISOString(),
start: '2025-02-20',
end: '2025-02-21',
allDay: true,
description: undefined,
location: undefined,