Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Oct 3, 2024
1 parent 680196b commit 2946ca4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ class LoginSiteCredentialsViewModelTest : BaseUnitTest() {
setup {
whenever(wpApiSiteRepository.login(siteAddress, testUsername, testPassword))
.thenReturn(Result.failure(Exception()))
whenever(wpApiSiteRepository.fetchSite(siteAddress, testUsername, testPassword))
.thenReturn(Result.success(testSite.apply { applicationPasswordsAuthorizeUrl = urlAuthBase }))
}

val event = viewModel.event.runAndCaptureValues {
Expand Down

0 comments on commit 2946ca4

Please sign in to comment.