summaryrefslogtreecommitdiff
path: root/internal/api/todoist_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/todoist_test.go')
-rw-r--r--internal/api/todoist_test.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/internal/api/todoist_test.go b/internal/api/todoist_test.go
index 88f94f8..2fa6e28 100644
--- a/internal/api/todoist_test.go
+++ b/internal/api/todoist_test.go
@@ -104,20 +104,16 @@ func TestTodoistClient_CreateTask_WithDueDate(t *testing.T) {
}
// Return mock response with due date
- dueStruct := struct {
- Date string `json:"date"`
- Datetime string `json:"datetime"`
- }{
- Date: "2026-01-15",
- Datetime: "",
- }
response := todoistTaskResponse{
ID: "task-789",
Content: "Task with Due Date",
ProjectID: "project-456",
URL: "https://todoist.com/task/789",
CreatedAt: time.Now().Format(time.RFC3339),
- Due: &dueStruct,
+ Due: &dueInfo{
+ Date: "2026-01-15",
+ Datetime: "",
+ },
}
w.Header().Set("Content-Type", "application/json")