aboutsummaryrefslogtreecommitdiff
path: root/http/response/json/json_test.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2023-07-30 15:33:56 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-07-30 15:52:49 -0700
commite7ccf0aa1e4fc7b118042a2d31ee61583ac796a8 (patch)
treee75f9646f7f18aabefb4b68a070fb13d316623d6 /http/response/json/json_test.go
parente2fb77bd85cf8db966c9b064ae37725d8d0664df (diff)
downloadv2-e7ccf0aa1e4fc7b118042a2d31ee61583ac796a8.tar.gz
v2-e7ccf0aa1e4fc7b118042a2d31ee61583ac796a8.tar.zst
v2-e7ccf0aa1e4fc7b118042a2d31ee61583ac796a8.zip
Add SaveEntry function to API client
Diffstat (limited to 'http/response/json/json_test.go')
-rw-r--r--http/response/json/json_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http/response/json/json_test.go b/http/response/json/json_test.go
index 1f3e6f19..43f72713 100644
--- a/http/response/json/json_test.go
+++ b/http/response/json/json_test.go
@@ -199,7 +199,7 @@ func TestUnauthorizedResponse(t *testing.T) {
t.Fatalf(`Unexpected status code, got %d instead of %d`, resp.StatusCode, expectedStatusCode)
}
- expectedBody := `{"error_message":"Access Unauthorized"}`
+ expectedBody := `{"error_message":"access unauthorized"}`
actualBody := w.Body.String()
if actualBody != expectedBody {
t.Fatalf(`Unexpected body, got %s instead of %s`, actualBody, expectedBody)
@@ -232,7 +232,7 @@ func TestForbiddenResponse(t *testing.T) {
t.Fatalf(`Unexpected status code, got %d instead of %d`, resp.StatusCode, expectedStatusCode)
}
- expectedBody := `{"error_message":"Access Forbidden"}`
+ expectedBody := `{"error_message":"access forbidden"}`
actualBody := w.Body.String()
if actualBody != expectedBody {
t.Fatalf(`Unexpected body, got %s instead of %s`, actualBody, expectedBody)
@@ -265,7 +265,7 @@ func TestNotFoundResponse(t *testing.T) {
t.Fatalf(`Unexpected status code, got %d instead of %d`, resp.StatusCode, expectedStatusCode)
}
- expectedBody := `{"error_message":"Resource Not Found"}`
+ expectedBody := `{"error_message":"resource not found"}`
actualBody := w.Body.String()
if actualBody != expectedBody {
t.Fatalf(`Unexpected body, got %s instead of %s`, actualBody, expectedBody)