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:
YeonGyu-Kim
2026-02-21 03:33:42 +09:00
parent 63ccf2abe0
commit 67f4c7039c
2 changed files with 5 additions and 5 deletions

View File

@@ -94,10 +94,10 @@ describe("createChatHeadersHandler", () => {
await handler(
{
sessionID: "ses_1",
sessionID: "ses_3",
provider: { id: "github-copilot" },
message: {
id: "msg_1",
id: "msg_3",
role: "user",
},
},

View File

@@ -332,10 +332,10 @@ describe("createEventHandler - model fallback", () => {
//#then - second fallback entry applied (chain advanced)
expect(second.message["model"]).toEqual({
providerID: "anthropic",
modelID: "gpt-5.3-codex",
providerID: "opencode",
modelID: "kimi-k2.5-free",
})
expect(second.message["variant"]).toBe("high")
expect(second.message["variant"]).toBeUndefined()
expect(abortCalls).toEqual([sessionID, sessionID])
expect(promptCalls).toEqual([sessionID, sessionID])
expect(toastCalls.length).toBeGreaterThanOrEqual(0)