Add comprehensive kanban board tests and fix test suite

- Add 13 tests for task kanban categorization and button types
- Fix i18n initialization in test setup (was causing nil pointer panics)
- Add TaskCompletionImage to test DB auto-migrate
- Update ListTasks tests to expect kanban board response instead of array

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-02 21:51:21 -06:00
parent 3419b66097
commit 7dc85aa4cf
4 changed files with 560 additions and 7 deletions

View File

@@ -151,7 +151,13 @@ func TestTaskService_ListTasks(t *testing.T) {
resp, err := service.ListTasks(user.ID)
require.NoError(t, err)
assert.Len(t, resp, 3)
// ListTasks returns a KanbanBoardResponse with columns
// Count total tasks across all columns
totalTasks := 0
for _, col := range resp.Columns {
totalTasks += col.Count
}
assert.Equal(t, 3, totalTasks)
}
func TestTaskService_UpdateTask(t *testing.T) {