mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-05-01 03:59:23 +08:00
test(agents): expand hephaestus and utils tests for team-mode
This commit is contained in:
@@ -126,6 +126,8 @@ describe("getHephaestusPrompt", () => {
|
||||
expect(prompt).toContain("You build context by examining");
|
||||
expect(prompt).toContain("Forbidden stops");
|
||||
expect(prompt).toContain("Three-attempt failure protocol");
|
||||
expect(prompt).toContain("based on GPT-5.5");
|
||||
expect(prompt).toContain("Autonomy and Persistence");
|
||||
});
|
||||
|
||||
test("GPT 5.3-codex model returns GPT-5.3 prompt", () => {
|
||||
|
||||
@@ -525,9 +525,9 @@ describe("createBuiltinAgents without systemDefaultModel", () => {
|
||||
const agents = await createBuiltinAgents([], {}, undefined, undefined)
|
||||
|
||||
// #then - connected cache enables model resolution despite no systemDefaultModel
|
||||
expect(agents.oracle).toBeDefined()
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.5")
|
||||
cacheSpy.mockRestore?.()
|
||||
expect(agents.oracle).toBeDefined()
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.5")
|
||||
cacheSpy.mockRestore?.()
|
||||
providerModelsSpy.mockRestore()
|
||||
fetchSpy.mockRestore()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user