Run SwiftFormat.

This commit is contained in:
Doug
2026-05-27 14:38:50 +01:00
committed by Doug
parent 5138e05e47
commit fa67713726
573 changed files with 2426 additions and 2426 deletions
@@ -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.")