mirror of
https://github.com/theniceboy/.config.git
synced 2026-05-02 19:58:04 +08:00
19 lines
500 B
Go
19 lines
500 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestPaletteBuildActionsIncludesDestroyForAgentRecord(t *testing.T) {
|
|
r := &paletteRuntime{
|
|
agentID: "memory-hack",
|
|
mainRepoRoot: "/tmp/repo",
|
|
currentPath: "/tmp/repo/.agents/memory-hack/repo",
|
|
record: &agentRecord{ID: "memory-hack", RepoRoot: "/tmp/repo"},
|
|
}
|
|
actions := r.buildActions()
|
|
for _, action := range actions {
|
|
if action.Kind == paletteActionConfirmDestroy {
|
|
return
|
|
}
|
|
}
|
|
t.Fatalf("destroy action missing: %#v", actions)
|
|
}
|