1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-17 01:42:45 +02:00

Merge pull request #1419 from mrgarelli/1418_bug_tests_ForceSetColorLevel

1418 Fixing test failure due to ColorLevel in test renderers
This commit is contained in:
Mark Kopenga
2021-08-06 14:30:26 +02:00
committed by GitHub

View File

@ -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