Skip to content

Commit

Permalink
update test too
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jul 6, 2023
1 parent dcf13ef commit 004cc47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ func TestColorMode(t *testing.T) {
Infof("info with file and line = %v", Config.LogFileAndLine)
_ = w.Flush()
actual := b.String()
expected := "\x1b[33mW logger_test.go:130> With file and line, attr=\"value with space\"\x1b[0m\n" +
expected := "\x1b[33mW logger_test.go:130> With file and line\x1b[0m, \x1b[34mattr\x1b[0m=\x1b[33m\"value with space\"\x1b[0m\n" +
"\x1b[32mI logger_test.go:131> info with file and line = true\x1b[0m\n" +
"\x1b[33mW > Without file and line, attr=\"value with space\"\x1b[0m\n" +
"\x1b[33mW > Without file and line\x1b[0m, \x1b[34mattr\x1b[0m=\x1b[33m\"value with space\"\x1b[0m\n" +
"\x1b[32mI > info with file and line = false\x1b[0m\n"
if actual != expected {
t.Errorf("got:\n%q\nexpected:\n%q", actual, expected)
Expand Down

0 comments on commit 004cc47

Please sign in to comment.