mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
test: update LM Studio tests to match new error handling behavior
This commit is contained in:
parent
fc78ad47c9
commit
a4520486b8
1 changed files with 2 additions and 4 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue