Skip to content

Commit

Permalink
chore: test mockative older version
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Nov 28, 2024
1 parent 2621589 commit db2173f
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,19 +369,18 @@ class LogoutUseCaseTest {
logoutUseCase.invoke(reason)
arrangement.globalTestScope.advanceUntilIdle()

coVerify {
arrangement.clearClientDataUseCase.invoke()
}.wasInvoked(exactly = once)
coVerify {
arrangement.logoutRepository.clearClientRelatedLocalMetadata()
}.wasInvoked(exactly = once)

coVerify {
arrangement.clientRepository.clearRetainedClientId()
}.wasInvoked(exactly = once)
coVerify {
arrangement.pushTokenRepository.setUpdateFirebaseTokenFlag(eq(true))
}.wasInvoked(exactly = once)
verify(arrangement.clearClientDataUseCase)
.coroutine { invoke() }
.wasInvoked(exactly = once)
verify(arrangement.logoutRepository)
.coroutine { clearClientRelatedLocalMetadata() }
.wasInvoked(exactly = once)
verify(arrangement.clientRepository)
.coroutine { clearRetainedClientId() }
.wasInvoked(exactly = once)
verify(arrangement.pushTokenRepository)
.coroutine { setUpdateFirebaseTokenFlag(eq(true)) }
.wasInvoked(exactly = once)
}

private class Arrangement {
Expand Down

0 comments on commit db2173f

Please sign in to comment.