test: update LM Studio tests to match new error handling behavior

This commit is contained in:
Roo Code 2025-11-05 17:25:06 +00:00
parent fc78ad47c9
commit a4520486b8

View file

@ -123,7 +123,7 @@ describe("LmStudioHandler", () => {
for await (const _chunk of stream) {
// Should not reach here
}
}).rejects.toThrow("Please check the LM Studio developer logs to debug what went wrong")
}).rejects.toThrow("LM Studio completion error: API Error")
})
})
@ -141,9 +141,7 @@ describe("LmStudioHandler", () => {
it("should handle API errors", async () => {
mockCreate.mockRejectedValueOnce(new Error("API Error"))
await expect(handler.completePrompt("Test prompt")).rejects.toThrow(
"Please check the LM Studio developer logs to debug what went wrong",
)
await expect(handler.completePrompt("Test prompt")).rejects.toThrow("LM Studio completion error: API Error")
})
it("should handle empty response", async () => {