From 20bc2b4656d515baa509c41097fc1dfc441e4f81 Mon Sep 17 00:00:00 2001 From: Brian Yencho Date: Mon, 13 Nov 2023 10:41:02 -0600 Subject: [PATCH] Ensure no-op test of account switching is valid (#238) --- .../ui/vault/feature/vault/VaultViewModelTest.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModelTest.kt b/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModelTest.kt index 116eacf8a..f1f9b7fb6 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModelTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultViewModelTest.kt @@ -32,10 +32,12 @@ class VaultViewModelTest : BaseViewModelTest() { fun `on AccountSwitchClick for the active account should do nothing`() = runTest { val viewModel = createViewModel() viewModel.eventFlow.test { - VaultAction.AccountSwitchClick( - accountSummary = mockk { - every { status } returns AccountSummary.Status.ACTIVE - }, + viewModel.trySendAction( + VaultAction.AccountSwitchClick( + accountSummary = mockk { + every { status } returns AccountSummary.Status.ACTIVE + }, + ), ) expectNoEvents() }