Files
oh-my-opencode/src/agents/athena/athena-config-injection.test.ts
T

27 lines
908 B
TypeScript
Raw Normal View History

import { describe, expect, it } from "bun:test"
import { createAthenaAgent } from "./agent"
describe("Athena prompt config injection placeholders", () => {
const athenaConfig = createAthenaAgent("anthropic/claude-opus-4-6")
describe("#given the Athena agent prompt", () => {
describe("#when checking for runtime injection placeholders", () => {
it("#then contains RETRY_ON_FAIL placeholder", () => {
expect(athenaConfig.prompt).toContain("{RETRY_ON_FAIL}")
})
it("#then contains STUCK_THRESHOLD_SECONDS placeholder", () => {
expect(athenaConfig.prompt).toContain("{STUCK_THRESHOLD_SECONDS}")
})
it("#then contains quorum reference", () => {
expect(athenaConfig.prompt).toContain("quorum")
})
it("#then contains timeout reference with 30000", () => {
expect(athenaConfig.prompt).toContain("30000")
})
})
})
})