mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-11 12:58:34 +00:00
test: tighten model selection warning assertions
This commit is contained in:
@@ -1585,7 +1585,7 @@ describe("model-selection", () => {
|
||||
|
||||
expect(result).toEqual({ provider: "google", model: "claude-3-5-sonnet" });
|
||||
expect(warnSpy).toHaveBeenCalledWith(
|
||||
expect.stringContaining('Falling back to "google/claude-3-5-sonnet"'),
|
||||
'[model-selection] Model "claude-3-5-sonnet" specified without provider. Falling back to "google/claude-3-5-sonnet". Please use "google/claude-3-5-sonnet" in your config.',
|
||||
);
|
||||
} finally {
|
||||
warnSpy.mockRestore();
|
||||
@@ -1812,7 +1812,7 @@ describe("model-selection", () => {
|
||||
|
||||
expect(result).toEqual({ provider: "openai", model: "gpt-5.4" });
|
||||
expect(warnSpy).toHaveBeenCalledWith(
|
||||
expect.stringContaining('Falling back to default "openai/gpt-5.4"'),
|
||||
'[model-selection] Model "openai/" could not be resolved. Falling back to default "openai/gpt-5.4".',
|
||||
);
|
||||
} finally {
|
||||
warnSpy.mockRestore();
|
||||
|
||||
Reference in New Issue
Block a user