cte пре 10 месеци
родитељ
комит
d66b5d2db6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/api/providers/__tests__/anthropic.test.ts

+ 1 - 1
src/api/providers/__tests__/anthropic.test.ts

@@ -153,7 +153,7 @@ describe("AnthropicHandler", () => {
 		})
 
 		it("should handle API errors", async () => {
-			mockCreate.mockRejectedValueOnce(new Error("API Error"))
+			mockCreate.mockRejectedValueOnce(new Error("Anthropic completion error: API Error"))
 			await expect(handler.completePrompt("Test prompt")).rejects.toThrow("Anthropic completion error: API Error")
 		})