1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-25 22:01:14 +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
commit fd8cb6e6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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