Skip to content

Commit

Permalink
Update stub
Browse files Browse the repository at this point in the history
  • Loading branch information
ichengchang committed Apr 13, 2023
1 parent 82e8de3 commit ab13ad6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ class SamProviderSpec extends AnyFlatSpec with ScalatestRouteTest with MockTestS
when(
userService.getUserStatusInfo(any[SamUser], any[SamRequestContext])
).thenAnswer((i: InvocationOnMock) => {
val userSubjectIdArg = i.getArgument[SamUser](0).googleSubjectId.get.value
val emailArg = i.getArgument[SamUser](0).email.value
val enabledArg = i.getArgument[SamUser](0).enabled
val samUser = i.getArgument[SamRequestContext](1).samUser.get
val userSubjectIdArg = samUser.googleSubjectId.get.value
val emailArg = samUser.email.value
val enabledArg = samUser.enabled
IO.pure(UserStatusInfo(userSubjectIdArg, emailArg, enabledArg, false))
})

Expand Down

0 comments on commit ab13ad6

Please sign in to comment.