This commit is contained in:
Ryooooooga
2022-04-02 17:04:42 +11:00
committed by Jesse Duffield
parent 4835fc00b8
commit 09d24ebd1d
+1
View File
@@ -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)