test: update model-fallback and chat-headers test expectations
🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
parent
63ccf2abe0
commit
67f4c7039c
@ -94,10 +94,10 @@ describe("createChatHeadersHandler", () => {
|
|||||||
|
|
||||||
await handler(
|
await handler(
|
||||||
{
|
{
|
||||||
sessionID: "ses_1",
|
sessionID: "ses_3",
|
||||||
provider: { id: "github-copilot" },
|
provider: { id: "github-copilot" },
|
||||||
message: {
|
message: {
|
||||||
id: "msg_1",
|
id: "msg_3",
|
||||||
role: "user",
|
role: "user",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -332,10 +332,10 @@ describe("createEventHandler - model fallback", () => {
|
|||||||
|
|
||||||
//#then - second fallback entry applied (chain advanced)
|
//#then - second fallback entry applied (chain advanced)
|
||||||
expect(second.message["model"]).toEqual({
|
expect(second.message["model"]).toEqual({
|
||||||
providerID: "anthropic",
|
providerID: "opencode",
|
||||||
modelID: "gpt-5.3-codex",
|
modelID: "kimi-k2.5-free",
|
||||||
})
|
})
|
||||||
expect(second.message["variant"]).toBe("high")
|
expect(second.message["variant"]).toBeUndefined()
|
||||||
expect(abortCalls).toEqual([sessionID, sessionID])
|
expect(abortCalls).toEqual([sessionID, sessionID])
|
||||||
expect(promptCalls).toEqual([sessionID, sessionID])
|
expect(promptCalls).toEqual([sessionID, sessionID])
|
||||||
expect(toastCalls.length).toBeGreaterThanOrEqual(0)
|
expect(toastCalls.length).toBeGreaterThanOrEqual(0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user