test: adjust post creation tests for DTO validation
This commit is contained in:
1 parent
8c06c916e1
commit
506e233347
1 file changed
+1
-1
@@ -310,7 +310,7 @@ func TestPostHandlerCreatePostValidation(t *testing.T) {
|
||||
}
|
||||
|
||||
recorder = httptest.NewRecorder()
|
||||
request = createCreatePostRequest(`{"title":"ok","url":"https://example.com"}`)
|
||||
request = createCreatePostRequest(`{"title":"okay","url":"https://example.com"}`)
|
||||
handler.CreatePost(recorder, request)
|
||||
testutils.AssertHTTPStatus(t, recorder, http.StatusUnauthorized)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user