chore(http): use white color for HTTP 1XX (#3741)

This commit is contained in:
Viral Parmar
2023-09-27 12:47:11 +05:30
committed by GitHub
parent c2ba8f19ec
commit a481ee2897
2 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,7 @@ func TestColorForStatus(t *testing.T) {
return p.StatusCodeColor()
}
assert.Equal(t, white, colorForStatus(http.StatusContinue), "1xx should be white")
assert.Equal(t, green, colorForStatus(http.StatusOK), "2xx should be green")
assert.Equal(t, white, colorForStatus(http.StatusMovedPermanently), "3xx should be white")
assert.Equal(t, yellow, colorForStatus(http.StatusNotFound), "4xx should be yellow")