Files
oh-my-opencode/src/agents/prometheus-gpt-category-prompt.test.ts
T
2026-03-31 13:05:44 -07:00

15 lines
633 B
TypeScript

declare const require: (name: string) => any
const { describe, expect, test } = require("bun:test")
import { PROMETHEUS_GPT_SYSTEM_PROMPT } from "./prometheus/gpt"
describe("PROMETHEUS_GPT_SYSTEM_PROMPT category guidance", () => {
test("#given recommended agent profile instructions #when reading category placeholder #then it must point planners at available categories rather than a free-form name", () => {
//#given
const prompt = PROMETHEUS_GPT_SYSTEM_PROMPT
//#when / #then
expect(prompt).not.toContain("Category: `[name]`")
expect(prompt).toContain("Category: `[category-from-available-categories-above]`")
})
})