Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: William <[email protected]>
  • Loading branch information
kwesidev committed Apr 21, 2024
1 parent b073625 commit 51aa002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/services/auth_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 51aa002

Please sign in to comment.