@@ -180,9 +180,13 @@ describe("ToolsTab", () => {
180180 } ) ;
181181
182182 // Tool should have been called with null value
183- expect ( mockCallTool ) . toHaveBeenCalledWith ( toolWithNullableField . name , {
184- num : null ,
185- } ) ;
183+ expect ( mockCallTool ) . toHaveBeenCalledWith (
184+ toolWithNullableField . name ,
185+ {
186+ num : null ,
187+ } ,
188+ undefined ,
189+ ) ;
186190 } ) ;
187191
188192 it ( "should support tri-state nullable boolean (null -> false -> true -> null)" , async ( ) => {
@@ -219,9 +223,13 @@ describe("ToolsTab", () => {
219223 await act ( async ( ) => {
220224 fireEvent . click ( runButton ) ;
221225 } ) ;
222- expect ( mockCallTool ) . toHaveBeenCalledWith ( toolWithNullableBoolean . name , {
223- optionalBoolean : null ,
224- } ) ;
226+ expect ( mockCallTool ) . toHaveBeenCalledWith (
227+ toolWithNullableBoolean . name ,
228+ {
229+ optionalBoolean : null ,
230+ } ,
231+ undefined ,
232+ ) ;
225233
226234 // State 2: Uncheck null checkbox -> should set value to false and enable input
227235 await act ( async ( ) => {
@@ -241,6 +249,7 @@ describe("ToolsTab", () => {
241249 {
242250 optionalBoolean : false ,
243251 } ,
252+ undefined ,
244253 ) ;
245254
246255 // State 3: Check boolean checkbox -> should set value to true
@@ -262,6 +271,7 @@ describe("ToolsTab", () => {
262271 {
263272 optionalBoolean : true ,
264273 } ,
274+ undefined ,
265275 ) ;
266276
267277 // State 4: Check null checkbox again -> should set value back to null and disable input
@@ -279,6 +289,7 @@ describe("ToolsTab", () => {
279289 {
280290 optionalBoolean : null ,
281291 } ,
292+ undefined ,
282293 ) ;
283294 } ) ;
284295
0 commit comments