Skip to content

Commit 452ad46

Browse files
test(askFollowupQuestion): drop test subsumed by the comprehensive undefined-text case
1 parent 228ec12 commit 452ad46

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/core/tools/__tests__/askFollowupQuestionTool.spec.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,6 @@ describe("AskFollowupQuestionTool", () => {
186186
expect(mockTask.say).toHaveBeenCalledWith("user_feedback", "", [])
187187
})
188188

189-
it("should handle user providing undefined text response", async () => {
190-
const params = { question: "What?", follow_up: [{ text: "A" }] }
191-
;(mockTask.ask as any).mockResolvedValue({ text: undefined, images: [] })
192-
193-
await tool.execute(params, mockTask, mockCallbacks)
194-
195-
expect(mockTask.say).toHaveBeenCalledWith("user_feedback", "", [])
196-
})
197-
198189
// ===== Error handling tests =====
199190

200191
it("should call handleError when task.ask throws", async () => {

0 commit comments

Comments
 (0)