mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 23:03:24 +00:00
Refactoring: variable names, adding tests and http constants
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -29,7 +29,6 @@ func Test_GetContentType_UsesRequest_WhenResponseEmpty(t *testing.T) {
|
||||
if contentType != request.Get("Content-Type") {
|
||||
t.Errorf("Got: %s, want: %s", contentType, request.Get("Content-Type"))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func Test_GetContentType_UsesDefaultWhenRequestResponseEmpty(t *testing.T) {
|
||||
@ -42,5 +41,4 @@ func Test_GetContentType_UsesDefaultWhenRequestResponseEmpty(t *testing.T) {
|
||||
if contentType != "default" {
|
||||
t.Errorf("Got: %s, want: %s", contentType, "default")
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user