Skip to content

Commit ddaadd0

Browse files
committed
Revert "Fixed build - ask himanshu later"
This reverts commit 53e08ab.
1 parent 0b65d69 commit ddaadd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

webview-ui/src/components/chat/__tests__/ChatTextArea.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe("ChatTextArea", () => {
5353
filePaths: [],
5454
})
5555

56-
render(<ChatTextArea isNewTask={false} {...defaultProps} textAreaDisabled={true} />)
56+
render(<ChatTextArea {...defaultProps} textAreaDisabled={true} />)
5757
const enhanceButton = screen.getByRole("button", { name: /enhance prompt/i })
5858
expect(enhanceButton).toHaveClass("disabled")
5959
})
@@ -71,7 +71,7 @@ describe("ChatTextArea", () => {
7171
apiConfiguration,
7272
})
7373

74-
render(<ChatTextArea isNewTask={false} {...defaultProps} inputValue="Test prompt" />)
74+
render(<ChatTextArea {...defaultProps} inputValue="Test prompt" />)
7575

7676
const enhanceButton = screen.getByRole("button", { name: /enhance prompt/i })
7777
fireEvent.click(enhanceButton)
@@ -90,7 +90,7 @@ describe("ChatTextArea", () => {
9090
},
9191
})
9292

93-
render(<ChatTextArea isNewTask={false} {...defaultProps} inputValue="" />)
93+
render(<ChatTextArea {...defaultProps} inputValue="" />)
9494

9595
const enhanceButton = screen.getByRole("button", { name: /enhance prompt/i })
9696
fireEvent.click(enhanceButton)
@@ -106,7 +106,7 @@ describe("ChatTextArea", () => {
106106
},
107107
})
108108

109-
render(<ChatTextArea isNewTask={false} {...defaultProps} inputValue="Test prompt" />)
109+
render(<ChatTextArea {...defaultProps} inputValue="Test prompt" />)
110110

111111
const enhanceButton = screen.getByRole("button", { name: /enhance prompt/i })
112112
fireEvent.click(enhanceButton)
@@ -118,7 +118,7 @@ describe("ChatTextArea", () => {
118118

119119
describe("effect dependencies", () => {
120120
it("should update when apiConfiguration changes", () => {
121-
const { rerender } = render(<ChatTextArea isNewTask={false} {...defaultProps} />)
121+
const { rerender } = render(<ChatTextArea {...defaultProps} />)
122122

123123
// Update apiConfiguration
124124
;(useExtensionState as jest.Mock).mockReturnValue({
@@ -129,7 +129,7 @@ describe("ChatTextArea", () => {
129129
},
130130
})
131131

132-
rerender(<ChatTextArea isNewTask={false} {...defaultProps} />)
132+
rerender(<ChatTextArea {...defaultProps} />)
133133

134134
// Verify the enhance button appears after apiConfiguration changes
135135
expect(screen.getByRole("button", { name: /enhance prompt/i })).toBeInTheDocument()
@@ -140,7 +140,7 @@ describe("ChatTextArea", () => {
140140
it("should update input value when receiving enhanced prompt", () => {
141141
const setInputValue = jest.fn()
142142

143-
render(<ChatTextArea isNewTask={false} {...defaultProps} setInputValue={setInputValue} />)
143+
render(<ChatTextArea {...defaultProps} setInputValue={setInputValue} />)
144144

145145
// Simulate receiving enhanced prompt message
146146
window.dispatchEvent(

0 commit comments

Comments
 (0)