Skip to content

Commit

Permalink
fix: windows terminal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 31, 2024
1 parent 0a6c85d commit 5de2f41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ var cases = []struct {
environ: []string{
"WT_SESSION=1",
},
expected: TrueColor,
expected: func() Profile {
if runtime.GOOS == "windows" {
// Windows Terminal supports TrueColor
return TrueColor
} else {
return NoTTY
}
}(),
},
}

Expand Down

0 comments on commit 5de2f41

Please sign in to comment.