diff options
Diffstat (limited to 'internal/task/task_test.go')
| -rw-r--r-- | internal/task/task_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/task/task_test.go b/internal/task/task_test.go index e6a17b8..72ff049 100644 --- a/internal/task/task_test.go +++ b/internal/task/task_test.go @@ -101,18 +101,18 @@ func TestDuration_MarshalYAML(t *testing.T) { } } -func TestTask_ProjectField(t *testing.T) { +func TestTask_ProjectIDField(t *testing.T) { t.Run("struct assignment", func(t *testing.T) { - task := Task{Project: "my-project"} - if task.Project != "my-project" { - t.Errorf("expected Project 'my-project', got %q", task.Project) + task := Task{ProjectID: "proj-123"} + if task.ProjectID != "proj-123" { + t.Errorf("expected ProjectID 'proj-123', got %q", task.ProjectID) } }) t.Run("yaml parsing", func(t *testing.T) { yaml := ` name: "Test Task" -project: my-project +project_id: proj-123 agent: instructions: "Do something" ` @@ -123,8 +123,8 @@ agent: if len(tasks) != 1 { t.Fatalf("expected 1 task, got %d", len(tasks)) } - if tasks[0].Project != "my-project" { - t.Errorf("expected Project 'my-project', got %q", tasks[0].Project) + if tasks[0].ProjectID != "proj-123" { + t.Errorf("expected ProjectID 'proj-123', got %q", tasks[0].ProjectID) } }) } |
