mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -37,13 +37,13 @@ struct SoftLogoutScreenViewModelTests {
|
||||
keyBackupNeeded: true,
|
||||
password: "12345678")
|
||||
let context = viewModel.context
|
||||
|
||||
|
||||
// Given a view model where the user hasn't yet sent the verification email.
|
||||
#expect(context.viewState.canSubmit, "The view model should start with a valid password.")
|
||||
#expect(context.viewState.loginMode == .password, "The view model should show login form for the given homeserver.")
|
||||
#expect(context.viewState.showRecoverEncryptionKeysMessage, "The view model should show recover encryption keys message.")
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
func initialStateForOAuth() {
|
||||
let viewModel = SoftLogoutScreenViewModel(credentials: credentials,
|
||||
@@ -64,7 +64,7 @@ struct SoftLogoutScreenViewModelTests {
|
||||
homeserver: .mockUnsupported,
|
||||
keyBackupNeeded: false)
|
||||
let context = viewModel.context
|
||||
|
||||
|
||||
// Given a view model where the user hasn't yet sent the verification email.
|
||||
#expect(context.password.isEmpty, "The view model should start with an empty password.")
|
||||
#expect(!context.viewState.canSubmit, "The view model should start with an invalid password.")
|
||||
|
||||
Reference in New Issue
Block a user