test: update expectations for ZWSP-free object keys

- Add RFC 7230 compliance tests for object key validation
- Verify name field still contains ZWSP for core agents
- Update all test expectations to use getAgentDisplayName()
This commit is contained in:
YeonGyu-Kim
2026-04-13 11:16:11 +09:00
parent 35fdd22d36
commit 4681e7ce27
8 changed files with 137 additions and 89 deletions
@@ -6,7 +6,7 @@ import {
reorderAgentsByPriority,
CANONICAL_CORE_AGENT_ORDER,
} from "./agent-priority-order"
import { getAgentDisplayName, getAgentListDisplayName } from "../shared/agent-display-names"
import { getAgentDisplayName } from "../shared/agent-display-names"
describe("agent-priority-order", () => {
describe("CANONICAL_CORE_AGENT_ORDER", () => {
@@ -35,11 +35,11 @@ describe("agent-priority-order", () => {
})
describe("reorderAgentsByPriority", () => {
// given: display names for all core agents
const sisyphus = getAgentListDisplayName("sisyphus")
const hephaestus = getAgentListDisplayName("hephaestus")
const prometheus = getAgentListDisplayName("prometheus")
const atlas = getAgentListDisplayName("atlas")
// given: display names for all core agents (no ZWSP in keys)
const sisyphus = getAgentDisplayName("sisyphus")
const hephaestus = getAgentDisplayName("hephaestus")
const prometheus = getAgentDisplayName("prometheus")
const atlas = getAgentDisplayName("atlas")
const oracle = getAgentDisplayName("oracle")
const librarian = getAgentDisplayName("librarian")
const explore = getAgentDisplayName("explore")