mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
Update writeToFileTool.test.ts to use specific directive types directly
This commit is contained in:
parent
4a3f3ebe25
commit
5efd95a8c5
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ describe("writeToFileTool", () => {
|
|||
mockCline.rooIgnoreController.validateAccess.mockReturnValue(accessAllowed)
|
||||
|
||||
// Create a tool use object
|
||||
const ToolDirective: ToolDirective = {
|
||||
const ToolDirective: WriteToFileToolDirective = {
|
||||
type: "tool_use",
|
||||
name: "write_to_file",
|
||||
params: {
|
||||
|
|
@ -213,7 +213,7 @@ describe("writeToFileTool", () => {
|
|||
|
||||
await writeToFileTool(
|
||||
mockCline,
|
||||
ToolDirective as WriteToFileToolDirective,
|
||||
ToolDirective,
|
||||
mockAskApproval,
|
||||
mockHandleError,
|
||||
(result: ToolResponse) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue