fix: include overdue tasks in today summary
This commit is contained in:
@@ -164,7 +164,9 @@ describe('task and habit row decoration', () => {
|
||||
expect(app).toContain('async function loadTodayTaskSummary()')
|
||||
expect(app).toContain('const token = ++todaySummaryLoadToken')
|
||||
expect(app).toContain("params.set('completed', String(completed))")
|
||||
expect(app).toContain('await Promise.all([summaryTotal(false), summaryTotal(true)])')
|
||||
expect(app).toContain('const overdueTotal = async () => {')
|
||||
expect(app).toContain('await Promise.all([summaryTotal(false), summaryTotal(true), overdueTotal()])')
|
||||
expect(app).toContain('todayTaskTotal.value = overdue + open + completed')
|
||||
expect(app).toContain("if (activeView.value === 'today') void loadTodayTaskSummary()")
|
||||
expect(app).toContain('aria-controls="today-tasks"')
|
||||
expect(app).toContain('aria-controls="today-habits"')
|
||||
|
||||
Reference in New Issue
Block a user