Skip to content

Commit

Permalink
(fix) tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed May 18, 2024
1 parent e903444 commit 20856ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions app/pkg/badge_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down
8 changes: 4 additions & 4 deletions app/pkg/chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down
8 changes: 4 additions & 4 deletions app/pkg/pr_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down

0 comments on commit 20856ca

Please sign in to comment.