test: cover queued followup retargeting

This commit is contained in:
Shakker
2026-05-11 15:28:51 +01:00
parent f994094cb4
commit f9c3d683cd

View File

@@ -46,13 +46,15 @@ describe("refreshQueuedFollowupSession", () => {
nextAuthProfileIdSource: undefined,
});
expect(queue.lastRun).toMatchObject({
expect(queue.lastRun).toEqual({
...makeRun(),
provider: "openai",
model: "gpt-4o",
authProfileId: undefined,
authProfileIdSource: undefined,
});
expect(queue.items[0]?.run).toMatchObject({
expect(queue.items[0]?.run).toEqual({
...makeRun(),
provider: "openai",
model: "gpt-4o",
authProfileId: undefined,
@@ -76,7 +78,8 @@ describe("refreshQueuedFollowupSession", () => {
nextModelOverrideSource: "user",
});
expect(queue.items[0]?.run).toMatchObject({
expect(queue.items[0]?.run).toEqual({
...makeRun(),
provider: "ollama",
model: "qwen3.5:27b",
hasSessionModelOverride: true,