Skip to content

Commit 0fcb0cb

Browse files
committed
avoid ({}) => ... in tests
1 parent 18140cf commit 0fcb0cb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/server/mcp.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,11 @@ describe("tool()", () => {
526526

527527
// new api
528528
mcpServer.tool("test (new api)", {
529-
description: "Test description",
530-
callback: async ({}) => ({
529+
description: "Test description",
530+
callback: async () => ({
531531
content: [
532532
{
533-
type: "text",
533+
type: "text" as const,
534534
text: "Test response",
535535
},
536536
],
@@ -583,11 +583,11 @@ describe("tool()", () => {
583583
}));
584584

585585
mcpServer.tool("test (new api)", {
586-
annotations: { title: "Test Tool", readOnlyHint: true },
587-
callback: async ({}) => ({
586+
annotations: { title: "Test Tool", readOnlyHint: true },
587+
callback: async () => ({
588588
content: [
589589
{
590-
type: "text",
590+
type: "text" as const,
591591
text: "Test response",
592592
},
593593
],
@@ -761,8 +761,8 @@ describe("tool()", () => {
761761
description: "A tool with everything but empty params",
762762
inputSchema: {},
763763
annotations: { title: "Complete Test Tool with empty params", readOnlyHint: true, openWorldHint: false },
764-
callback: async ({}) => ({
765-
content: [{ type: "text", text: "Test response" }]
764+
callback: async () => ({
765+
content: [{ type: "text" as const, text: "Test response" }]
766766
})
767767
});
768768

0 commit comments

Comments
 (0)