Skip to content

Commit

Permalink
added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Oct 3, 2023
1 parent ccda5f8 commit 4da41f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ func TestHandler(t *testing.T) {
},
Want: `Nov 10 23:00:00.000 INF tint/handler_test.go:326 test`,
},
{ // https://github.com/lmittmann/tint/issues/44
F: func(l *slog.Logger) {
l = l.WithGroup("group")
l.Error("test", tint.Err(errTest))
},
Want: `Nov 10 23:00:00.000 ERR test group.err=fail`,
},
}

for i, test := range tests {
Expand Down

0 comments on commit 4da41f0

Please sign in to comment.