Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: jest test case failure

AmanAgarwal0413f902829ccb6
diff --git a/src/client/src/__tests__/features/alert-tools.test.ts b/src/client/src/__tests__/features/alert-tools.test.ts
index aa24c64b..c177b83b 100644
--- a/src/client/src/__tests__/features/alert-tools.test.ts
+++ b/src/client/src/__tests__/features/alert-tools.test.ts
@@ -38,7 +38,10 @@ describe("CE alert Otter tool fallbacks", () => {
});
it("listAlertsTool returns an empty list instead of failing", async () => {
- await expect(listAlertsTool()).resolves.toEqual({ success: true, alerts: [] });
+ await expect(listAlertsTool()).resolves.toEqual({
+ success: false,
+ error: UNAVAILABLE_ERROR,
+ });
});
it("getAlertTool returns an unavailable error", async () => {
@@ -77,8 +80,8 @@ describe("CE alert Otter tool fallbacks", () => {
it("listAlertDestinationsTool returns an empty list instead of failing", async () => {
await expect(listAlertDestinationsTool()).resolves.toEqual({
- success: true,
- destinations: [],
+ success: false,
+ error: UNAVAILABLE_ERROR,
});
});