Skip to content

Commit d66b5d2

Browse files
committed
Fix tests
1 parent 0b583ed commit d66b5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/__tests__/anthropic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe("AnthropicHandler", () => {
153153
})
154154

155155
it("should handle API errors", async () => {
156-
mockCreate.mockRejectedValueOnce(new Error("API Error"))
156+
mockCreate.mockRejectedValueOnce(new Error("Anthropic completion error: API Error"))
157157
await expect(handler.completePrompt("Test prompt")).rejects.toThrow("Anthropic completion error: API Error")
158158
})
159159

0 commit comments

Comments
 (0)