We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0861ea7 commit 1170ccfCopy full SHA for 1170ccf
1 file changed
console_test.go
@@ -102,6 +102,8 @@ func TestConsoleLogger(t *testing.T) {
102
}
103
104
func TestConsoleWriter(t *testing.T) {
105
+ t.Setenv("NO_COLOR", "")
106
+
107
t.Run("Default field formatter", func(t *testing.T) {
108
buf := &bytes.Buffer{}
109
w := zerolog.ConsoleWriter{Out: buf, NoColor: true, PartsOrder: []string{"foo"}}
0 commit comments