Skip to content

Commit 1170ccf

Browse files
authored
tests: isolate console color expectations (#781)
1 parent 0861ea7 commit 1170ccf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

console_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ func TestConsoleLogger(t *testing.T) {
102102
}
103103

104104
func TestConsoleWriter(t *testing.T) {
105+
t.Setenv("NO_COLOR", "")
106+
105107
t.Run("Default field formatter", func(t *testing.T) {
106108
buf := &bytes.Buffer{}
107109
w := zerolog.ConsoleWriter{Out: buf, NoColor: true, PartsOrder: []string{"foo"}}

0 commit comments

Comments
 (0)