mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
test: fix failing test due to new tool description
This commit is contained in:
parent
cea4d163b2
commit
7bb1f3ebb4
1 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue