test(agents): update Atlas uiSelectedModel expectation

This commit is contained in:
youming.tang
2026-02-04 15:26:02 +09:00
committed by YeonGyu-Kim
parent 538a92ab12
commit a206daa437

View File

@@ -51,7 +51,7 @@ describe("createBuiltinAgents with model overrides", () => {
expect(agents.sisyphus.thinking).toBeUndefined()
})
test("Atlas uses uiSelectedModel when provided", async () => {
test("Atlas does not use uiSelectedModel (respects its own fallback chain)", async () => {
// #given
const fetchSpy = spyOn(shared, "fetchAvailableModels").mockResolvedValue(
new Set(["openai/gpt-5.2", "anthropic/claude-sonnet-4-6"])
@@ -75,7 +75,7 @@ describe("createBuiltinAgents with model overrides", () => {
// #then
expect(agents.atlas).toBeDefined()
expect(agents.atlas.model).toBe("openai/gpt-5.2")
expect(agents.atlas.model).toBe("anthropic/claude-sonnet-4-5")
} finally {
fetchSpy.mockRestore()
}