Skip to content

Commit

Permalink
(ci) fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed May 18, 2024
1 parent e529bf9 commit 5929bdc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/bar_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestGetBarChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}
2 changes: 1 addition & 1 deletion pkg/donut_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestGetDonutChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}
2 changes: 1 addition & 1 deletion pkg/funnel_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestGetFunnelChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}
2 changes: 1 addition & 1 deletion pkg/line_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestGetLineChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}
2 changes: 1 addition & 1 deletion pkg/pie_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestGetPieChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}
2 changes: 1 addition & 1 deletion pkg/radar_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestGetRadarChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}
2 changes: 1 addition & 1 deletion pkg/table_chart_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestGetTableChart(t *testing.T) {
if resp.StatusCode == http.StatusOK {
assert.Equal(t, "image/png", resp.Header.Get("Content-Type"))
} else {
assert.Equal(t, "application/json; charset=UTF-8", resp.Header.Get("Content-Type"))
assert.Equal(t, "application/json", resp.Header.Get("Content-Type"))
}
}
}

0 comments on commit 5929bdc

Please sign in to comment.