Skip to content

Commit

Permalink
Merge pull request #67 from Tyl13/issue-66
Browse files Browse the repository at this point in the history
Fixes #66 by forcing lipgloss to have no color output
  • Loading branch information
chicoxyzzy authored Jun 23, 2024
2 parents 2db45fe + fae6e1b commit 1022c64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"path/filepath"
"testing"

"github.com/charmbracelet/lipgloss"
"github.com/muesli/termenv"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -116,6 +118,7 @@ func TestSwitchCommand(t *testing.T) {
}

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

0 comments on commit 1022c64

Please sign in to comment.