File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
client/src/components/__tests__ Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ describe("ToolsTab", () => {
12
12
inputSchema : {
13
13
type : "object" as const ,
14
14
properties : {
15
- num : { type : "number" as const }
16
- }
17
- }
15
+ num : { type : "number" as const } ,
16
+ } ,
17
+ } ,
18
18
} ,
19
19
{
20
20
name : "tool2" ,
21
21
description : "Second tool" ,
22
22
inputSchema : {
23
23
type : "object" as const ,
24
24
properties : {
25
- num : { type : "number" as const }
26
- }
27
- }
28
- }
25
+ num : { type : "number" as const } ,
26
+ } ,
27
+ } ,
28
+ } ,
29
29
] ;
30
30
31
31
const defaultProps = {
@@ -37,20 +37,20 @@ describe("ToolsTab", () => {
37
37
setSelectedTool : jest . fn ( ) ,
38
38
toolResult : null ,
39
39
nextCursor : "" ,
40
- error : null
40
+ error : null ,
41
41
} ;
42
42
43
43
const renderToolsTab = ( props = { } ) => {
44
44
return render (
45
45
< Tabs defaultValue = "tools" >
46
46
< ToolsTab { ...defaultProps } { ...props } />
47
- </ Tabs >
47
+ </ Tabs > ,
48
48
) ;
49
49
} ;
50
50
51
51
it ( "should reset input values when switching tools" , ( ) => {
52
52
const { rerender } = renderToolsTab ( {
53
- selectedTool : mockTools [ 0 ]
53
+ selectedTool : mockTools [ 0 ] ,
54
54
} ) ;
55
55
56
56
// Enter a value in the first tool's input
@@ -62,7 +62,7 @@ describe("ToolsTab", () => {
62
62
rerender (
63
63
< Tabs defaultValue = "tools" >
64
64
< ToolsTab { ...defaultProps } selectedTool = { mockTools [ 1 ] } />
65
- </ Tabs >
65
+ </ Tabs > ,
66
66
) ;
67
67
68
68
// Verify input is reset
You can’t perform that action at this time.
0 commit comments