test: add tests for council config schema, prompt content, and config injection

This commit is contained in:
ismeth
2026-02-26 12:48:04 +01:00
committed by YeonGyu-Kim
parent 3dd378fce6
commit a30d0a1427
4 changed files with 168 additions and 1 deletions
@@ -0,0 +1,24 @@
import { describe, expect, it } from "bun:test"
import { COUNCIL_MEMBER_PROMPT } from "./council-member-agent"
describe("COUNCIL_MEMBER_PROMPT", () => {
describe("#given the prompt constant", () => {
describe("#when checking for required tag instructions", () => {
it("#then contains COUNCIL_MEMBER_RESPONSE tag name", () => {
expect(COUNCIL_MEMBER_PROMPT).toContain("COUNCIL_MEMBER_RESPONSE")
})
it("#then contains Response Format section header", () => {
expect(COUNCIL_MEMBER_PROMPT).toContain("Response Format")
})
it("#then contains opening tag example", () => {
expect(COUNCIL_MEMBER_PROMPT).toContain("<COUNCIL_MEMBER_RESPONSE>")
})
it("#then contains closing tag example", () => {
expect(COUNCIL_MEMBER_PROMPT).toContain("</COUNCIL_MEMBER_RESPONSE>")
})
})
})
})