test: fix failing test due to new tool description

This commit is contained in:
Daniel Riccio
2025-01-18 17:06:01 -05:00
parent cea4d163b2
commit 7bb1f3ebb4

View File

@@ -24,17 +24,19 @@ describe("main", () => {
})
})
describe("getToolDescription", () => {
it("should return tool description with correct cwd", () => {
const cwd = "/test/path"
const description = strategy.getToolDescription({ cwd })
expect(description).toContain("apply_diff")
expect(description).toContain(cwd)
expect(description).toContain("Parameters:")
expect(description).toContain("Format Requirements:")
})
})
describe('getToolDescription', () => {
it('should return tool description with correct cwd', () => {
const cwd = '/test/path'
const description = strategy.getToolDescription(cwd)
expect(description).toContain('apply_diff Tool - Generate Precise Code Changes')
expect(description).toContain(cwd)
expect(description).toContain('Step-by-Step Instructions')
expect(description).toContain('Requirements')
expect(description).toContain('Examples')
expect(description).toContain('Parameters:')
})
})
it("should apply simple diff correctly", async () => {
const original = `line1