feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)
This commit is contained in:
1 parent
3d81d2c717
commit
6b8990c55e
239 files changed
+9194
-1354
No files matched your search
@@ -100,9 +100,10 @@ func TestAuthorUseCases(t *testing.T) {
|
||||
authors.fail.failNextWith("Create", author.ErrSlugTaken)
|
||||
uc := useCases.NewCreateMyAuthorUseCase(authors, users, discardRecorder)
|
||||
|
||||
created, err := uc.Create(context.Background(), 1)
|
||||
result, err := uc.Create(context.Background(), 1)
|
||||
created := result.Author
|
||||
|
||||
if err != nil || created.Slug != "marta-alves-2" {
|
||||
if err != nil || created.Slug != "marta-alves-2" || !result.SlugAdjusted {
|
||||
t.Errorf("created %+v %v", created, err)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user