Skip to content

Commit 1022c64

Browse files
authored
Merge pull request #67 from Tyl13/issue-66
Fixes #66 by forcing lipgloss to have no color output
2 parents 2db45fe + fae6e1b commit 1022c64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/switch_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import (
66
"path/filepath"
77
"testing"
88

9+
"github.com/charmbracelet/lipgloss"
10+
"github.com/muesli/termenv"
911
"github.com/stretchr/testify/assert"
1012
)
1113

@@ -116,6 +118,7 @@ func TestSwitchCommand(t *testing.T) {
116118
}
117119

118120
func setupConfig(t *testing.T, tc testCase) string {
121+
lipgloss.SetColorProfile(termenv.Ascii)
119122
tempDir := t.TempDir() // unique temp dir for each test and cleaned up after test finishes
120123
configPath := filepath.Join(tempDir, "config.yaml")
121124
if tc.configExists {

0 commit comments

Comments
 (0)