From 746902518299371db1828e9cbd9ed428896b8504 Mon Sep 17 00:00:00 2001 From: Kevin Mulvey Date: Wed, 27 May 2015 20:53:28 -0400 Subject: [PATCH] forgot the default of ColorForMethod --- logger_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logger_test.go b/logger_test.go index 30e226f..1cdaa94 100644 --- a/logger_test.go +++ b/logger_test.go @@ -87,6 +87,7 @@ func TestColorForMethod(t *testing.T) { assert.Equal(t, colorForMethod("PATCH"), string([]byte{27, 91, 57, 55, 59, 52, 50, 109}), "patch should be green") assert.Equal(t, colorForMethod("HEAD"), string([]byte{27, 91, 57, 55, 59, 52, 53, 109}), "head should be magenta") assert.Equal(t, colorForMethod("OPTIONS"), string([]byte{27, 91, 57, 48, 59, 52, 55, 109}), "options should be white") + assert.Equal(t, colorForMethod("TRACE"), string([]byte{27, 91, 48, 109}), "trace is not defined and should be the reset color") } func TestColorForStatus(t *testing.T) {