From c1820e561248e6028a67a25fdbd02cd7bfc6eab1 Mon Sep 17 00:00:00 2001 From: sai nikhil kethe Date: Tue, 27 Jan 2026 21:54:27 +0530 Subject: [PATCH] fix: update the endpoint --- web/src/services/incidents.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/services/incidents.spec.ts b/web/src/services/incidents.spec.ts index 45bf3144ce..1a896ac325 100644 --- a/web/src/services/incidents.spec.ts +++ b/web/src/services/incidents.spec.ts @@ -103,7 +103,7 @@ describe("incidents service", () => { expect(http).toHaveBeenCalled(); expect(mockHttp.patch).toHaveBeenCalledWith( - "/api/v2/test-org/alerts/incidents/incident-123/status", + "/api/v2/test-org/alerts/incidents/incident-123/update", { status: "acknowledged" } ); }); @@ -114,7 +114,7 @@ describe("incidents service", () => { incidents.updateStatus("test-org", "incident-123", "open"); expect(mockHttp.patch).toHaveBeenCalledWith( - "/api/v2/test-org/alerts/incidents/incident-123/status", + "/api/v2/test-org/alerts/incidents/incident-123/update", { status: "open" } ); }); @@ -125,7 +125,7 @@ describe("incidents service", () => { incidents.updateStatus("test-org", "incident-123", "resolved"); expect(mockHttp.patch).toHaveBeenCalledWith( - "/api/v2/test-org/alerts/incidents/incident-123/status", + "/api/v2/test-org/alerts/incidents/incident-123/update", { status: "resolved" } ); });