summaryrefslogtreecommitdiffstats
path: root/pkg/gui/presentation/files_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/presentation/files_test.go')
-rw-r--r--pkg/gui/presentation/files_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/presentation/files_test.go b/pkg/gui/presentation/files_test.go
index 729d0d8cf..025def566 100644
--- a/pkg/gui/presentation/files_test.go
+++ b/pkg/gui/presentation/files_test.go
@@ -134,15 +134,15 @@ M file1
for _, path := range s.collapsedPaths {
viewModel.ToggleCollapsed(path)
}
- patchManager := patch.NewPatchManager(
+ patchBuilder := patch.NewPatchBuilder(
utils.NewDummyLog(),
func(patch string, flags ...string) error { return nil },
func(from string, to string, reverse bool, filename string, plain bool) (string, error) {
return "", nil
},
)
- patchManager.Start("from", "to", false, false)
- result := RenderCommitFileTree(viewModel, "", patchManager)
+ patchBuilder.Start("from", "to", false, false)
+ result := RenderCommitFileTree(viewModel, "", patchBuilder)
assert.EqualValues(t, s.expected, result)
})
}