@@ -167,6 +167,7 @@ describe("configureWorkTools", () => {
167167 const call = ( server . tool as jest . Mock ) . mock . calls . find (
168168 ( [ toolName ] ) => toolName === "work_assign_iterations"
169169 ) ;
170+
170171 if ( ! call ) throw new Error ( "work_assign_iterations tool not registered" ) ;
171172 const [ , , , handler ] = call ;
172173
@@ -231,6 +232,7 @@ describe("configureWorkTools", () => {
231232 const call = ( server . tool as jest . Mock ) . mock . calls . find (
232233 ( [ toolName ] ) => toolName === "work_assign_iterations"
233234 ) ;
235+
234236 if ( ! call ) throw new Error ( "work_assign_iterations tool not registered" ) ;
235237 const [ , , , handler ] = call ;
236238
@@ -261,6 +263,7 @@ describe("configureWorkTools", () => {
261263 const call = ( server . tool as jest . Mock ) . mock . calls . find (
262264 ( [ toolName ] ) => toolName === "work_assign_iterations"
263265 ) ;
266+
264267 if ( ! call ) throw new Error ( "work_assign_iterations tool not registered" ) ;
265268 const [ , , , handler ] = call ;
266269
@@ -292,12 +295,11 @@ describe("configureWorkTools", () => {
292295 const call = ( server . tool as jest . Mock ) . mock . calls . find (
293296 ( [ toolName ] ) => toolName === "work_create_iterations"
294297 ) ;
298+
295299 if ( ! call ) throw new Error ( "work_create_iterations tool not registered" ) ;
296300 const [ , , , handler ] = call ;
297301
298- (
299- mockWorkItemTrackingApi . createOrUpdateClassificationNode as jest . Mock
300- ) . mockResolvedValue ( {
302+ ( mockWorkItemTrackingApi . createOrUpdateClassificationNode as jest . Mock ) . mockResolvedValue ( {
301303 id : 126391 ,
302304 identifier : "a5c68379-3258-4d62-971c-71c1c459336e" ,
303305 name : "Web" ,
@@ -375,6 +377,7 @@ describe("configureWorkTools", () => {
375377 const call = ( server . tool as jest . Mock ) . mock . calls . find (
376378 ( [ toolName ] ) => toolName === "work_create_iterations"
377379 ) ;
380+
378381 if ( ! call ) throw new Error ( "work_create_iterations tool not registered" ) ;
379382 const [ , , , handler ] = call ;
380383
@@ -405,6 +408,7 @@ describe("configureWorkTools", () => {
405408 const call = ( server . tool as jest . Mock ) . mock . calls . find (
406409 ( [ toolName ] ) => toolName === "work_create_iterations"
407410 ) ;
411+
408412 if ( ! call ) throw new Error ( "work_create_iterations tool not registered" ) ;
409413 const [ , , , handler ] = call ;
410414
0 commit comments