Ensure no-op test of account switching is valid (#238)

This commit is contained in:
Brian Yencho 2023-11-13 10:41:02 -06:00 committed by Álison Fernandes
parent 62d82b5304
commit 20bc2b4656

View file

@ -32,10 +32,12 @@ class VaultViewModelTest : BaseViewModelTest() {
fun `on AccountSwitchClick for the active account should do nothing`() = runTest { fun `on AccountSwitchClick for the active account should do nothing`() = runTest {
val viewModel = createViewModel() val viewModel = createViewModel()
viewModel.eventFlow.test { viewModel.eventFlow.test {
VaultAction.AccountSwitchClick( viewModel.trySendAction(
accountSummary = mockk { VaultAction.AccountSwitchClick(
every { status } returns AccountSummary.Status.ACTIVE accountSummary = mockk {
}, every { status } returns AccountSummary.Status.ACTIVE
},
),
) )
expectNoEvents() expectNoEvents()
} }