Tasks: ignore placeholder checklist completion dates from TickTick
All checks were successful
Deploy production / deploy (push) Successful in 2m34s

This commit is contained in:
2026-10-24 03:10:53 +00:00
parent 6a127de950
commit 1754ea9316
2 changed files with 12 additions and 3 deletions

View File

@@ -57,10 +57,13 @@ describe('ticktick mapping', () => {
completedTime: '2025-01-02T09:00:00.000+0000',
items: [
{ id: 'i1', title: 'milk', status: 1, completedTime: '2025-01-02T08:00:00.000+0000' },
{ id: 'i2', title: 'eggs', status: 0 }
{ id: 'i2', title: 'eggs', status: 0 },
{ id: 'i3', title: 'bread', status: 1, completedTime: 978307200000 }
]
} as Parameters<typeof mapTask>[0]);
expect(rows).toHaveLength(3);
expect(rows).toHaveLength(4);
// Placeholder completion (2001) falls back to the task's completion.
expect(rows[3].completedAt?.toISOString()).toBe('2025-01-02T09:00:00.000Z');
expect(rows[0]).toMatchObject({
title: 'Groceries',
notes: 'weekly',