feat: activity log producers
This commit is contained in:
1 parent
50b1649965
commit
e37a46a027
93 files changed
+3396
-440
No files matched your search
+2
-2
@@ -231,7 +231,7 @@ var _ user.Repository = &mockUserRepo{}
|
||||
|
||||
func TestCreateUser(t *testing.T) {
|
||||
repo := newMockUserRepo()
|
||||
uc := useCases.NewCreateUserUseCase(repo, &stubHasher{}, newMockMailRepo(), "https://cms.example.com")
|
||||
uc := useCases.NewCreateUserUseCase(repo, &stubHasher{}, newMockMailRepo(), "https://cms.example.com", discardRecorder)
|
||||
|
||||
cmd := useCases.CreateUserCommand{
|
||||
Username: "testuser",
|
||||
@@ -239,7 +239,7 @@ func TestCreateUser(t *testing.T) {
|
||||
Email: "test@example.com",
|
||||
}
|
||||
|
||||
res, err := uc.CreateUser(cmd)
|
||||
res, err := uc.CreateUser(testCtx, cmd)
|
||||
if err != nil {
|
||||
t.Fatalf("User creation failed: %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user