mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
test: update issue #695 test to use date-only format for all-day events
This commit is contained in:
parent
a7ed12b49e
commit
8622bfb3e0
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue