Files
Memoh/internal/conversation/flow/skill_test.go
T
2026-04-16 13:48:18 +08:00

19 lines
480 B
Go

package flow
import "testing"
func TestNormalizeGatewaySkillPreservesPath(t *testing.T) {
got, ok := normalizeGatewaySkill(SkillEntry{
Name: "pdf",
Description: "Read PDF instructions",
Content: "Use a PDF-aware workflow.",
Path: " /data/.agents/skills/pdf ",
})
if !ok {
t.Fatal("normalizeGatewaySkill returned ok=false")
}
if got.Path != "/data/.agents/skills/pdf" {
t.Fatalf("path = %q, want %q", got.Path, "/data/.agents/skills/pdf")
}
}