File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
client/src/components/__tests__ Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -85,17 +85,18 @@ describe("ToolsTab", () => {
85
85
selectedTool : mockTools [ 1 ] , // Use the tool with integer type
86
86
} ) ;
87
87
88
- const input = screen . getByRole ( "textbox" , { name : / c o u n t / i } ) as HTMLInputElement ;
88
+ const input = screen . getByRole ( "textbox" , {
89
+ name : / c o u n t / i,
90
+ } ) as HTMLInputElement ;
89
91
expect ( input ) . toHaveProperty ( "type" , "number" ) ;
90
92
fireEvent . change ( input , { target : { value : "42" } } ) ;
91
93
expect ( input . value ) . toBe ( "42" ) ;
92
94
93
95
const submitButton = screen . getByRole ( "button" , { name : / r u n t o o l / i } ) ;
94
96
fireEvent . click ( submitButton ) ;
95
-
96
- expect ( defaultProps . callTool ) . toHaveBeenCalledWith (
97
- mockTools [ 1 ] . name ,
98
- { count : 42 }
99
- ) ;
97
+
98
+ expect ( defaultProps . callTool ) . toHaveBeenCalledWith ( mockTools [ 1 ] . name , {
99
+ count : 42 ,
100
+ } ) ;
100
101
} ) ;
101
102
} ) ;
You can’t perform that action at this time.
0 commit comments