Skip to content

Commit fa33afb

Browse files
committed
tests: fix
1 parent 34f9af1 commit fa33afb

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

src/features/git/components/GitDiffPanel.test.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,4 @@ describe("GitDiffPanel", () => {
6969
expect(onCommit).toHaveBeenCalledTimes(1);
7070
});
7171

72-
it("exposes revert-all action from the header", () => {
73-
const onRevertAllChanges = vi.fn();
74-
render(
75-
<GitDiffPanel
76-
{...baseProps}
77-
onRevertAllChanges={onRevertAllChanges}
78-
unstagedFiles={[
79-
{ path: "file.txt", status: "M", additions: 1, deletions: 0 },
80-
]}
81-
/>,
82-
);
83-
84-
const revertAllButton = screen.getByRole("button", { name: "Revert all changes" });
85-
fireEvent.click(revertAllButton);
86-
expect(onRevertAllChanges).toHaveBeenCalledTimes(1);
87-
});
88-
8972
});

src/features/git/components/GitDiffPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ export function GitDiffPanel({
564564
worktreeApplyError = null,
565565
worktreeApplySuccess = false,
566566
onApplyWorktreeChanges,
567-
onRevertAllChanges,
567+
onRevertAllChanges: _onRevertAllChanges,
568568
branchName,
569569
totalAdditions,
570570
totalDeletions,

0 commit comments

Comments
 (0)