Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shakespeared committed Nov 15, 2023
1 parent 6bbe5b8 commit c7156b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ object SamUserRegistrationRequest {
implicit val SamUserRegistrationRequestFormat: RootJsonFormat[SamUserRegistrationRequest] = jsonFormat2(SamUserRegistrationRequest.apply)
}
case class SamUserRegistrationRequest(
acceptsTermsOfService: Boolean,
userAttributes: SamUserAttributesRequest
acceptsTermsOfService: Boolean,
userAttributes: SamUserAttributesRequest
) {
def validateForNewUser: Option[Seq[ErrorReport]] = Option(
Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class CreateUserSpec extends UserServiceTestTraits {

val invalidRegistrationRequest = SamUserRegistrationRequest(
acceptsTermsOfService = true,
SamUserAttributesRequest( marketingConsent = None)
SamUserAttributesRequest(marketingConsent = None)
)

// Act and Assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ class UserAttributesSpec extends UserServiceTestTraits {
val userAttributes = SamUserAttributes(user.id, marketingConsent = true)

// Act
runAndWait(userService.createUser(user, Some(SamUserRegistrationRequest(true, SamUserAttributesRequest(marketingConsent = Some(true)))), samRequestContext))
runAndWait(
userService.createUser(user, Some(SamUserRegistrationRequest(true, SamUserAttributesRequest(marketingConsent = Some(true)))), samRequestContext)
)

// Assert
verify(directoryDAO).setUserAttributes(eqTo(userAttributes), any[SamRequestContext])
Expand Down

0 comments on commit c7156b6

Please sign in to comment.