Files
orchestra/internal/orchestrator/launch_prompt_test.go
T
2026-07-28 13:20:28 +04:00

21 lines
518 B
Go

package orchestrator
import (
"orchestra/internal/domain"
"strings"
"testing"
)
func TestTaskLaunchPromptIncludesRemoteTaskInstructions(t *testing.T) {
prompt := taskLaunchPrompt(domain.Task{
ID: "task-1",
Title: "Create marker",
Description: "Create E2E_RESULT.md containing ok.",
})
for _, want := range []string{"task-1", "Create marker", "Create E2E_RESULT.md containing ok."} {
if !strings.Contains(prompt, want) {
t.Fatalf("launch prompt missing %q: %s", want, prompt)
}
}
}