Skip to content

Commit b0e1210

Browse files
committed
fix tests
1 parent 0650454 commit b0e1210

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/unit/toolBase.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,13 @@ describe("ToolBase", () => {
141141
beforeEach(() => {
142142
const mockServer = {
143143
mcpServer: {
144-
tool: (
144+
registerTool: (
145145
name: string,
146-
description: string,
147-
paramsSchema: unknown,
148-
annotations: ToolAnnotations,
146+
config: { description: string; inputSchema: unknown; annotations: ToolAnnotations },
149147
cb: ToolCallback<ZodRawShape>
150148
): void => {
151149
expect(name).toBe(testTool.name);
152-
expect(description).toBe(testTool["description"]);
150+
expect(config.description).toBe(testTool["description"]);
153151
mockCallback = cb;
154152
},
155153
},

0 commit comments

Comments
 (0)