clean: refactor auth & login page auth

This commit is contained in:
Florian Sylvain
2024-05-13 11:11:58 +02:00
parent dca17a744d
commit 00a4e464ff
4 changed files with 37 additions and 35 deletions
+2 -2
View File
@@ -121,13 +121,13 @@ var TestGetAllPostsSuccess = func(t *testing.T) {
}
var TestPostCreate = func(t *testing.T) {
t.Run("Should return an post with the given title and body", TestCreatePostSuccess)
t.Run("Should return a post with the given title and body", TestCreatePostSuccess)
t.Run("Should return an error if the title is missing", TestCreatePostFailTitleMissing)
t.Run("Should return an error if the title is too short", TestCreatePostTitleTooShort)
}
var TestPostGet = func(t *testing.T) {
t.Run("Should return an post with the given id", TestGetPostSuccess)
t.Run("Should return a post with the given id", TestGetPostSuccess)
}
var TestPostGetAll = func(t *testing.T) {