Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Jan 15, 2025
1 parent f07afee commit 7155f5b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.woocommerce.android.ui.login.accountmismatch

import com.woocommerce.android.FakeDispatcher
import com.woocommerce.android.ui.login.WPApiSiteRepository
import com.woocommerce.android.viewmodel.BaseUnitTest
import kotlinx.coroutines.ExperimentalCoroutinesApi
Expand All @@ -21,11 +22,13 @@ class AccountMismatchRepositoryTest : BaseUnitTest() {
private val wpApiSiteRepository = mock<WPApiSiteRepository> {
onBlocking { fetchSite(any(), any(), any()) }.thenReturn(Result.success(SiteModel()))
}
private val dispatcher = FakeDispatcher()

private val sut = AccountMismatchRepository(
jetpackStore = jetpackStore,
siteStore = siteStore,
wpApiSiteRepository = wpApiSiteRepository
wpApiSiteRepository = wpApiSiteRepository,
dispatcher = dispatcher
)

@Test
Expand Down

0 comments on commit 7155f5b

Please sign in to comment.