Skip to content
Snippets Groups Projects
Commit b3ac6a7f authored by wieseoli's avatar wieseoli
Browse files

Merge branch '276-fix-authenticationviewmodel-test' into 'dev'

Resolve "Fix authenticationViewModel test"

See merge request !51
parents b23b3f1f d8eececd
No related branches found
No related tags found
4 merge requests!58Onboarding screens swift ui merge dev,!55WIP: Resolve "UI for gamifcation & stats",!51Resolve "Fix authenticationViewModel test",!47Provisional fix for OpenSSL 1.1+, needs testing
...@@ -48,7 +48,7 @@ class AuthenticationTests: XCTestCase { ...@@ -48,7 +48,7 @@ class AuthenticationTests: XCTestCase {
promise in promise(.success(AuthenticationModel.AuthenticationResult.Success)) promise in promise(.success(AuthenticationModel.AuthenticationResult.Success))
} }
stub(model) { stub in stub(model) { stub in
when(stub.checkConfig(mailAccount: any(), extendedValidation: false)).thenReturn(future) when(stub.checkConfig(mailAccount: any(), extendedValidation: true)).thenReturn(future)
} }
viewModel.detailValidation(login, password, username, imapServer, String(imapPort), imapEncryption, smtpServer, String(smtpPort), smtpEncryption) viewModel.detailValidation(login, password, username, imapServer, String(imapPort), imapEncryption, smtpServer, String(smtpPort), smtpEncryption)
let argumentCaptor = ArgumentCaptor<MailAccount>() let argumentCaptor = ArgumentCaptor<MailAccount>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment