Skip to content

Commit 40d249e

Browse files
committed
test: add more tests for kid
1 parent ced34bb commit 40d249e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

kid_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,3 +453,13 @@ func TestKidServeHTTP_ErrorReturnedByHandler(t *testing.T) {
453453
assert.Equal(t, "application/json", res.Header().Get("Content-Type"))
454454
assert.Equal(t, "{\"message\":\"Forbidden\"}\n", res.Body.String())
455455
}
456+
457+
func TestKidDebug(t *testing.T) {
458+
k := New()
459+
k.debug = false
460+
461+
assert.False(t, k.Debug())
462+
463+
k.debug = true
464+
assert.True(t, k.Debug())
465+
}

0 commit comments

Comments
 (0)