Skip to content

Commit 46d2868

Browse files
test(experiments): assert the update-file direct-save success result
Lint follow-up: the update-file direct-save test now asserts pushToolResult received the success message and handleError was not called (the destructured mocks must be used). applyPatchTool.experiments 8 passed; eslint 0.
1 parent 11913c9 commit 46d2868

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/core/tools/__tests__/applyPatchTool.experiments.spec.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ describe("ApplyPatchTool focus-disruption routing (L2)", () => {
192192
expect(fixture.diffViewProvider.open).not.toHaveBeenCalled()
193193
expect(fixture.diffViewProvider.saveChanges).not.toHaveBeenCalled()
194194
expect(fixture.didEditFile).toBe(true)
195+
expect(pushToolResult).toHaveBeenCalledWith("Changes successfully applied.")
196+
expect(handleError).not.toHaveBeenCalled()
195197
})
196198

197199
it("updates a file through the diff editor when the user opted out", async () => {

0 commit comments

Comments
 (0)