mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -20,7 +20,7 @@ final class SecurityAndPrivacyScreenViewModelTests {
|
||||
var context: SecurityAndPrivacyScreenViewModelType.Context {
|
||||
viewModel.context
|
||||
}
|
||||
|
||||
|
||||
deinit {
|
||||
viewModel = nil
|
||||
roomProxy = nil
|
||||
@@ -157,7 +157,7 @@ final class SecurityAndPrivacyScreenViewModelTests {
|
||||
#expect(context.desiredSettings.accessType == .spaceMembers(spaceIDs: [spaces[0].id]))
|
||||
#expect(context.viewState.shouldShowAccessSectionFooter)
|
||||
#expect(!context.viewState.isSaveDisabled)
|
||||
|
||||
|
||||
await waitForConfirmation("Join rule has updated") { confirm in
|
||||
roomProxy.updateJoinRuleClosure = { value in
|
||||
#expect(value == .restricted(rules: [.roomMembership(roomID: spaces[0].id)]))
|
||||
@@ -202,7 +202,7 @@ final class SecurityAndPrivacyScreenViewModelTests {
|
||||
#expect(context.desiredSettings.accessType == .askToJoinWithSpaceMembers(spaceIDs: [spaces[0].id]))
|
||||
#expect(context.viewState.shouldShowAccessSectionFooter)
|
||||
#expect(!context.viewState.isSaveDisabled)
|
||||
|
||||
|
||||
await waitForConfirmation("Join rule has updated") { confirm in
|
||||
roomProxy.updateJoinRuleClosure = { value in
|
||||
#expect(value == .knockRestricted(rules: [.roomMembership(roomID: spaces[0].id)]))
|
||||
@@ -249,7 +249,7 @@ final class SecurityAndPrivacyScreenViewModelTests {
|
||||
#expect(context.desiredSettings.accessType == .spaceMembers(spaceIDs: [spaces[0].id, "unknownSpaceID"]))
|
||||
#expect(context.viewState.shouldShowAccessSectionFooter)
|
||||
#expect(!context.viewState.isSaveDisabled)
|
||||
|
||||
|
||||
await waitForConfirmation("Join rule has updated") { confirm in
|
||||
roomProxy.updateJoinRuleClosure = { value in
|
||||
#expect(value == .restricted(rules: [.roomMembership(roomID: spaces[0].id), .roomMembership(roomID: "unknownSpaceID")]))
|
||||
|
||||
Reference in New Issue
Block a user