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
+2 -2
View File
@@ -1,7 +1,7 @@
declare const require: NodeJS.Require
const { describe, test, expect, beforeEach, afterEach, spyOn, mock } = require("bun:test")
import { DEFAULT_CATEGORIES, CATEGORY_PROMPT_APPENDS, CATEGORY_DESCRIPTIONS, isPlanAgent, PLAN_AGENT_NAMES, isPlanFamily, PLAN_FAMILY_NAMES } from "./constants"
import { getAgentDisplayName, getAgentListDisplayName } from "../../shared/agent-display-names"
import { getAgentDisplayName, getAgentDisplayName } from "../../shared/agent-display-names"
import type { CategoryConfig } from "../../config/schema"
import type { DelegateTaskArgs } from "./types"
import { __resetModelCache } from "../../shared/model-availability"
@@ -277,7 +277,7 @@ describe("sisyphus-task", () => {
test("returns true for prometheus list display name with zwsp prefix", () => {
//#given / #when
const result = isPlanFamily(getAgentListDisplayName("prometheus"))
const result = isPlanFamily(getAgentDisplayName("prometheus"))
//#then
expect(result).toBe(true)
})