@@ -29,7 +29,7 @@ describe("Tool Tests", () => {
2929 expect ( json . tools [ 0 ] ) . toHaveProperty ( "name" ) ;
3030 expect ( json . tools [ 0 ] ) . toHaveProperty ( "description" ) ;
3131 // Validate expected tools from test-mcp-server
32- const toolNames = json . tools . map ( ( tool : any ) => tool . name ) ;
32+ const toolNames = json . tools . map ( ( tool : { name : string } ) => tool . name ) ;
3333 expect ( toolNames ) . toContain ( "echo" ) ;
3434 expect ( toolNames ) . toContain ( "get_sum" ) ;
3535 expect ( toolNames ) . toContain ( "get_annotated_message" ) ;
@@ -133,7 +133,9 @@ describe("Tool Tests", () => {
133133 expect ( Array . isArray ( json . content ) ) . toBe ( true ) ;
134134 // Should have both text and image content
135135 expect ( json . content . length ) . toBeGreaterThan ( 1 ) ;
136- const hasImage = json . content . some ( ( item : any ) => item . type === "image" ) ;
136+ const hasImage = json . content . some (
137+ ( item : { type ?: string } ) => item . type === "image" ,
138+ ) ;
137139 expect ( hasImage ) . toBe ( true ) ;
138140 } ) ;
139141
@@ -157,7 +159,9 @@ describe("Tool Tests", () => {
157159 expect ( json ) . toHaveProperty ( "content" ) ;
158160 expect ( Array . isArray ( json . content ) ) . toBe ( true ) ;
159161 // Should only have text content, no image
160- const hasImage = json . content . some ( ( item : any ) => item . type === "image" ) ;
162+ const hasImage = json . content . some (
163+ ( item : { type ?: string } ) => item . type === "image" ,
164+ ) ;
161165 expect ( hasImage ) . toBe ( false ) ;
162166 // test-mcp-server returns "This is a {messageType} message"
163167 expect ( json . content [ 0 ] . text . toLowerCase ( ) ) . toContain ( "error" ) ;
0 commit comments