Skip to content

Commit a7383ac

Browse files
authored
Update src/core/tools/__tests__/listFilesTool.spec.ts
1 parent e986a74 commit a7383ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ describe("ListFilesTool", () => {
256256

257257
await tool.execute(params, mockTask, mockCallbacks)
258258

259+
expect(mockCallbacks.askApproval).toHaveBeenCalled()
259260
expect(mockCallbacks.askApproval).toHaveBeenCalled()
260261
expect(mockCallbacks.pushToolResult).not.toHaveBeenCalled()
262+
expect(mockCallbacks.handleError).not.toHaveBeenCalled()
261263
})
262264

263265
it("should push result when user approves", async () => {

0 commit comments

Comments
 (0)