diff options
| author | Doot Agent <agent@doot.local> | 2026-07-06 00:00:59 +0000 |
|---|---|---|
| committer | Doot Agent <agent@doot.local> | 2026-07-06 00:00:59 +0000 |
| commit | 945c34590677e161a711ccaff0e1077197b1b178 (patch) | |
| tree | df26e8ba5a369b3323649c2fab95bd8e7a49b58e /internal/handlers/widget_test.go | |
| parent | cd14604bbef17f696475cf8737f1e41c9fa2dd06 (diff) | |
feat: remove Todoist integration entirely
Native tasks (native_tasks table) fully replace Todoist. All Todoist
API code, store functions, handlers, routes, templates, and tests have
been removed. Migration 021 drops the now-unused tasks cache table.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers/widget_test.go')
| -rw-r--r-- | internal/handlers/widget_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/handlers/widget_test.go b/internal/handlers/widget_test.go index 5b054a0..f56fe07 100644 --- a/internal/handlers/widget_test.go +++ b/internal/handlers/widget_test.go @@ -61,11 +61,11 @@ func TestTimelineItemToWidgetItem_Task(t *testing.T) { item := models.TimelineItem{ ID: "abc", Title: "Write notes", - Source: "todoist", + Source: "doot", Type: models.TimelineItemTypeTask, Time: now, IsAllDay: true, - URL: "https://todoist.com/task/abc", + URL: "https://example.com/task/abc", } wi := TimelineItemToWidgetItem(item) @@ -77,7 +77,7 @@ func TestTimelineItemToWidgetItem_Task(t *testing.T) { t.Errorf("Type: got %q, want %q", wi.Type, "task") } if !wi.Completable { - t.Error("todoist task should be completable") + t.Error("doot task should be completable") } if wi.Start != nil { t.Error("all-day item should have nil Start") @@ -109,7 +109,7 @@ func TestTimelineItemToWidgetItem_Event(t *testing.T) { } } -func TestHandleWidgetComplete_NonTodoist(t *testing.T) { +func TestHandleWidgetComplete_NonCompletable(t *testing.T) { h := &Handler{} body := `{"id":"x","source":"calendar"}` req := httptest.NewRequest("POST", "/api/widget/complete", strings.NewReader(body)) |
