@@ -53,7 +53,7 @@ describe("ChatTextArea", () => {
53
53
filePaths : [ ] ,
54
54
} )
55
55
56
- render ( < ChatTextArea isNewTask = { false } { ...defaultProps } textAreaDisabled = { true } /> )
56
+ render ( < ChatTextArea { ...defaultProps } textAreaDisabled = { true } /> )
57
57
const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
58
58
expect ( enhanceButton ) . toHaveClass ( "disabled" )
59
59
} )
@@ -71,7 +71,7 @@ describe("ChatTextArea", () => {
71
71
apiConfiguration,
72
72
} )
73
73
74
- render ( < ChatTextArea isNewTask = { false } { ...defaultProps } inputValue = "Test prompt" /> )
74
+ render ( < ChatTextArea { ...defaultProps } inputValue = "Test prompt" /> )
75
75
76
76
const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
77
77
fireEvent . click ( enhanceButton )
@@ -90,7 +90,7 @@ describe("ChatTextArea", () => {
90
90
} ,
91
91
} )
92
92
93
- render ( < ChatTextArea isNewTask = { false } { ...defaultProps } inputValue = "" /> )
93
+ render ( < ChatTextArea { ...defaultProps } inputValue = "" /> )
94
94
95
95
const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
96
96
fireEvent . click ( enhanceButton )
@@ -106,7 +106,7 @@ describe("ChatTextArea", () => {
106
106
} ,
107
107
} )
108
108
109
- render ( < ChatTextArea isNewTask = { false } { ...defaultProps } inputValue = "Test prompt" /> )
109
+ render ( < ChatTextArea { ...defaultProps } inputValue = "Test prompt" /> )
110
110
111
111
const enhanceButton = screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } )
112
112
fireEvent . click ( enhanceButton )
@@ -118,7 +118,7 @@ describe("ChatTextArea", () => {
118
118
119
119
describe ( "effect dependencies" , ( ) => {
120
120
it ( "should update when apiConfiguration changes" , ( ) => {
121
- const { rerender } = render ( < ChatTextArea isNewTask = { false } { ...defaultProps } /> )
121
+ const { rerender } = render ( < ChatTextArea { ...defaultProps } /> )
122
122
123
123
// Update apiConfiguration
124
124
; ( useExtensionState as jest . Mock ) . mockReturnValue ( {
@@ -129,7 +129,7 @@ describe("ChatTextArea", () => {
129
129
} ,
130
130
} )
131
131
132
- rerender ( < ChatTextArea isNewTask = { false } { ...defaultProps } /> )
132
+ rerender ( < ChatTextArea { ...defaultProps } /> )
133
133
134
134
// Verify the enhance button appears after apiConfiguration changes
135
135
expect ( screen . getByRole ( "button" , { name : / e n h a n c e p r o m p t / i } ) ) . toBeInTheDocument ( )
@@ -140,7 +140,7 @@ describe("ChatTextArea", () => {
140
140
it ( "should update input value when receiving enhanced prompt" , ( ) => {
141
141
const setInputValue = jest . fn ( )
142
142
143
- render ( < ChatTextArea isNewTask = { false } { ...defaultProps } setInputValue = { setInputValue } /> )
143
+ render ( < ChatTextArea { ...defaultProps } setInputValue = { setInputValue } /> )
144
144
145
145
// Simulate receiving enhanced prompt message
146
146
window . dispatchEvent (
0 commit comments