fix: include overdue tasks in today summary
ci / gitleaks (push) Successful in 56s
ci / docker (push) Successful in 3m51s

This commit is contained in:
2026-09-08 15:28:45 +08:00
parent d9c16908e9
commit 7f4ba7779a
2 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -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"')