From f22dc9271b19c31f41b43bb400eaa06a3b69ac45 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Thu, 11 Sep 2025 09:22:27 -0600 Subject: [PATCH] Update test to use edited task description Modified the test in create_test.go to return and expect 'edited task description' instead of concatenating the prompt string. This clarifies the test's intent and expected behavior for the MarkdownEditorFunc and CreateJobFunc. --- pkg/cmd/agent-task/create/create_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/agent-task/create/create_test.go b/pkg/cmd/agent-task/create/create_test.go index 06e9c7c4e..638559e74 100644 --- a/pkg/cmd/agent-task/create/create_test.go +++ b/pkg/cmd/agent-task/create/create_test.go @@ -153,7 +153,7 @@ func Test_createRun(t *testing.T) { MarkdownEditorFunc: func(prompt, defaultValue string, blankAllowed bool) (string, error) { require.Equal(t, "Enter the task description", prompt) require.Equal(t, "task description from file", defaultValue) - return prompt + "+From editor", nil + return "edited task description", nil }, ConfirmFunc: func(message string, defaultValue bool) (bool, error) { require.Equal(t, "Submit agent task", message) @@ -166,7 +166,7 @@ func Test_createRun(t *testing.T) { m.CreateJobFunc = func(ctx context.Context, owner, repo, problemStatement, baseBranch string) (*capi.Job, error) { require.Equal(t, "OWNER", owner) require.Equal(t, "REPO", repo) - require.Equal(t, "Enter the task description+From editor", problemStatement) + require.Equal(t, "edited task description", problemStatement) return &createdJobSuccessWithPR, nil } },