Tasks: ignore placeholder checklist completion dates from TickTick
All checks were successful
Deploy production / deploy (push) Successful in 2m34s
All checks were successful
Deploy production / deploy (push) Successful in 2m34s
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user