fix: update the endpoint

This commit is contained in:
sai nikhil kethe
2026-01-27 23:01:14 +05:30
committed by ByteBaker
parent 484c4a953a
commit c1820e5612
+3 -3
View File
@@ -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" }
);
});