clean: refactor auth & login page auth
This commit is contained in:
1 parent
dca17a744d
commit
00a4e464ff
4 files changed
+37
-35
No files matched your search
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user