diff options
Diffstat (limited to 'pkg/gui/presentation/files_test.go')
-rw-r--r-- | pkg/gui/presentation/files_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/presentation/files_test.go b/pkg/gui/presentation/files_test.go index c40f6247e..7a3a0ba6f 100644 --- a/pkg/gui/presentation/files_test.go +++ b/pkg/gui/presentation/files_test.go @@ -69,7 +69,7 @@ M file1 for _, s := range scenarios { s := s t.Run(s.name, func(t *testing.T) { - viewModel := filetree.NewFileTreeViewModel(s.files, utils.NewDummyLog(), true) + viewModel := filetree.NewFileTreeViewModel(func() []*models.File { return s.files }, utils.NewDummyLog(), true) for _, path := range s.collapsedPaths { viewModel.ToggleCollapsed(path) } |