diff options
author | Ryooooooga <eial5q265e5@gmail.com> | 2022-03-26 22:54:15 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-02 17:04:42 +1100 |
commit | 09d24ebd1d0012ba7b68a90df8cbdcc4c7910d21 (patch) | |
tree | bfd8fd7d30b58b25f8cba5c43dc3c24acb229883 | |
parent | 4835fc00b861c6117c1d4d6873a05d808e54b4cf (diff) |
fix test
-rw-r--r-- | pkg/gui/presentation/files_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/presentation/files_test.go b/pkg/gui/presentation/files_test.go index fcca2c27d..5f475b3fe 100644 --- a/pkg/gui/presentation/files_test.go +++ b/pkg/gui/presentation/files_test.go @@ -129,6 +129,7 @@ M file1 s := s t.Run(s.name, func(t *testing.T) { viewModel := filetree.NewCommitFileTreeViewModel(func() []*models.CommitFile { return s.files }, utils.NewDummyLog(), true) + viewModel.SetRef(&models.Commit{}) viewModel.SetTree() for _, path := range s.collapsedPaths { viewModel.ToggleCollapsed(path) |