mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Ensure no-op test of account switching is valid (#238)
This commit is contained in:
parent
62d82b5304
commit
20bc2b4656
1 changed files with 6 additions and 4 deletions
|
@ -32,10 +32,12 @@ class VaultViewModelTest : BaseViewModelTest() {
|
|||
fun `on AccountSwitchClick for the active account should do nothing`() = runTest {
|
||||
val viewModel = createViewModel()
|
||||
viewModel.eventFlow.test {
|
||||
viewModel.trySendAction(
|
||||
VaultAction.AccountSwitchClick(
|
||||
accountSummary = mockk {
|
||||
every { status } returns AccountSummary.Status.ACTIVE
|
||||
},
|
||||
),
|
||||
)
|
||||
expectNoEvents()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue