Skip to content

Commit f407483

Browse files
hannesrudolphdaniel-lxs
authored andcommitted
test: fix insertContentTool mock to match actual implementation
- Update mock to return Promise<void> instead of Promise<{ success: boolean }> - Aligns test mock with the actual tool implementation
1 parent ea0c94a commit f407483

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ describe("insertContentTool", () => {
9696
finalContent: "final content",
9797
}),
9898
scrollToFirstDiff: vi.fn(),
99+
updateDiagnosticSettings: vi.fn(),
99100
pushToolWriteResult: vi.fn().mockImplementation(async function (
100101
this: any,
101102
task: any,

0 commit comments

Comments
 (0)