mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
19 lines
480 B
Go
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")
|
|
}
|
|
}
|