diff --git a/internal/services/auth_service_test.go b/internal/services/auth_service_test.go index 6d02f69..c60f849 100644 --- a/internal/services/auth_service_test.go +++ b/internal/services/auth_service_test.go @@ -42,7 +42,9 @@ func TestMain(m *testing.M) { os.Exit(code) } func TestLoginByUsernamePassword(t *testing.T) { - authService := NewAuthService(db, nil, nil) + userService := NewUserService(db) + EmailService := NewEmailService(true) + authService := NewAuthService(db, userService, EmailService) _, err := authService.LoginByUsernamePassword("john.doe", "password", "", "") if err != nil { t.Error("Failed to authenticate")