Skip to content

Commit

Permalink
test: complete mocked API
Browse files Browse the repository at this point in the history
  • Loading branch information
SekoiaTree committed May 30, 2024
1 parent 120069a commit fef6a2e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ class ProfileScreenTest : TestCase(kaspressoBuilder = Kaspresso.Builder.withComp
val onSuccessCallback = firstArg<(PermissionRole) -> Unit>()
onSuccessCallback(PermissionRole("1", "asso", RoleType.PRESIDENCY))
}

// Never return a profile picture, permanently "fetch" the profile picture
every { getProfilePicture(any(), any(), any()) } answers {}

every { setProfilePicture(any(), any(), any(), any()) } answers
{
val onSuccessCallback = thirdArg<() -> Unit>()
onSuccessCallback()
}
}

private lateinit var mViewmodel: ProfileViewModel
Expand Down

0 comments on commit fef6a2e

Please sign in to comment.