package outreach

import (
	"strings"
	"testing"

	outreachusecase "haixun-backend/internal/model/outreach_draft/domain/usecase"
)

func TestFormatPreviousDraftsHint(t *testing.T) {
	hint := FormatPreviousDraftsHint(&outreachusecase.DraftSummary{
		Drafts: []outreachusecase.DraftItem{
			{Angle: "共情", Text: "我懂你的感受"},
		},
	})
	if !strings.Contains(hint, "上一版草稿") || !strings.Contains(hint, "共情") {
		t.Fatalf("hint = %q", hint)
	}
}
