Skip to content

Commit bf084ae

Browse files
test(listFilesTool): cover case-insensitive recursive flag instead of duplicate
1 parent cf08ff7 commit bf084ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ describe("ListFilesTool", () => {
450450
expect(getReadablePath).toHaveBeenCalledWith(TEST_WORKSPACE, "")
451451
})
452452

453-
it("should handle partial message with recursive as string 'true'", async () => {
453+
it("should handle partial message with recursive as string 'TRUE' (case-insensitive)", async () => {
454454
vi.mocked(getReadablePath).mockReturnValue("src")
455-
const block = createBlock({ path: "src", recursive: "true" as any }, true)
455+
const block = createBlock({ path: "src", recursive: "TRUE" as any }, true)
456456

457457
await tool.handlePartial(mockTask, block)
458458

0 commit comments

Comments
 (0)