summaryrefslogtreecommitdiffstats
path: root/pkg/gui/filetree
diff options
context:
space:
mode:
authorMatthew Garelli <mrgarelli@gmail.com>2021-08-06 02:37:26 -0600
committerMatthew Garelli <mrgarelli@gmail.com>2021-08-06 02:18:04 -0700
commit46c146a8c13d2ca3bf24290691a29766e98c606c (patch)
treeef9c79ea76d0dd1bc9ed35571a717ea0a8916703 /pkg/gui/filetree
parentd626bcac0029267d3f45223198902f5cb78d9dc1 (diff)
fixed test failing due to ForceSetColorLevel in pkg/gui/style/style_test.go
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r--pkg/gui/filetree/file_manager_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/filetree/file_manager_test.go b/pkg/gui/filetree/file_manager_test.go
index 038c03364..2e19e94ea 100644
--- a/pkg/gui/filetree/file_manager_test.go
+++ b/pkg/gui/filetree/file_manager_test.go
@@ -3,11 +3,15 @@ package filetree
import (
"testing"
+ "github.com/gookit/color"
"github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/stretchr/testify/assert"
+ "github.com/xo/terminfo"
)
func TestRender(t *testing.T) {
+ color.ForceSetColorLevel(terminfo.ColorLevelNone)
+
scenarios := []struct {
name string
root *FileNode