diff --git a/app/pkg/badge_handler_test.go b/app/pkg/badge_handler_test.go index c3ddb4e..082677e 100644 --- a/app/pkg/badge_handler_test.go +++ b/app/pkg/badge_handler_test.go @@ -39,25 +39,25 @@ func TestGetBadgeErrors(t *testing.T) { { Name: "422", Query: `?repo=repo&branch=branch&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&branch=branch&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&repo=repo&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&repo=repo&branch=branch`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, } diff --git a/app/pkg/chart_handler_test.go b/app/pkg/chart_handler_test.go index 33b03b4..77cff84 100644 --- a/app/pkg/chart_handler_test.go +++ b/app/pkg/chart_handler_test.go @@ -33,24 +33,24 @@ func TestGetChartErrors(t *testing.T) { Name: "404", Query: `?org=org&repo=repo&branch=branch&type=type`, Status: http.StatusNotFound, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", }, { Name: "422", Query: `?repo=repo&branch=branch&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&branch=branch&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&repo=repo&branch=branch`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, } diff --git a/app/pkg/pr_handler_test.go b/app/pkg/pr_handler_test.go index bede2a2..a00eaaa 100644 --- a/app/pkg/pr_handler_test.go +++ b/app/pkg/pr_handler_test.go @@ -32,25 +32,25 @@ func TestPRErrors(t *testing.T) { { Name: "409", Query: `?org=org&repo=repo&branch=branch&base_branch=master&pr_num=2&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusConflict, }, { Name: "422", Query: `?org=org&branch=branch&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&repo=repo&type=type`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, { Name: "422", Query: `?org=org&repo=repo&branch=branch`, - ContentType: "application/json; charset=UTF-8", + ContentType: "application/json", Status: http.StatusUnprocessableEntity, }, }