Skip to content

Commit

Permalink
Adds username to user creation
Browse files Browse the repository at this point in the history
Includes the username field in the user creation process.
  • Loading branch information
Ayobami6 committed Nov 30, 2024
1 parent 1a34b88 commit a1b9564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/user_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestRegisterUser(t *testing.T) {
}

hashedPassword := "hashedPassword"
newUser := model.NewUser(createUserDto.Name, createUserDto.Email, hashedPassword)
newUser := model.NewUser(createUserDto.Name, createUserDto.Email, hashedPassword, createUserDto.Username)

t.Run("successful registration", func(t *testing.T) {
// expect
Expand Down

0 comments on commit a1b9564

Please sign in to comment.