Skip to content

Commit 3d223e3

Browse files
committed
fix(mcp): test
1 parent 52391f6 commit 3d223e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/__tests__/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ describe("CallToolRequestSchema Handler", () => {
232232
});
233233
});
234234

235-
it("should route to the correct tool handler for list_cloud_incidents", async () => {
235+
it("should route to the correct tool handler for get_cloud_incidents", async () => {
236236
const callToolHandler = setRequestHandlerMock.mock.calls.find(
237237
(call) => call[0] === CallToolRequestSchema
238238
)?.[1];
239239
const args = { filter: "status:open" };
240-
const request = mockRequest("list_cloud_incidents", args);
240+
const request = mockRequest("get_cloud_incidents", args);
241241

242242
await callToolHandler(request);
243243

@@ -401,7 +401,7 @@ describe("CallToolRequestSchema Handler", () => {
401401
(call) => call[0] === CallToolRequestSchema
402402
)?.[1];
403403
const args = { invalid: "args" };
404-
const request = mockRequest("list_cloud_incidents", args);
404+
const request = mockRequest("get_cloud_incidents", args);
405405

406406
// Mock the tool handler to throw a real ZodError
407407
(indexModule.handleCloudIncidentsRequest as any).mockImplementation(() => {
@@ -430,7 +430,7 @@ describe("CallToolRequestSchema Handler", () => {
430430
(call) => call[0] === CallToolRequestSchema
431431
)?.[1];
432432
const args = {};
433-
const request = mockRequest("list_cloud_incidents", args);
433+
const request = mockRequest("get_cloud_incidents", args);
434434

435435
// Mock the tool handler to throw a general error
436436
(indexModule.handleCloudIncidentsRequest as any).mockImplementation(() => {

0 commit comments

Comments
 (0)