Configured and applied SwiftFormat

This commit is contained in:
Stefan Ceriu
2022-09-27 10:17:22 +03:00
committed by Stefan Ceriu
parent ff2e6ddfa7
commit 43c28d23b7
663 changed files with 2329 additions and 2840 deletions
@@ -14,16 +14,15 @@
// limitations under the License.
//
import XCTest
import RiotSwiftUI
import XCTest
class SpaceSelectorUITests: MockScreenTestCase {
func testInitialDisplay() {
app.goToScreenWithIdentifier(MockSpaceSelectorScreenState.initialList.title)
let disclosureButtons = app.buttons.matching(identifier: "disclosureButton").allElementsBoundByIndex
XCTAssertEqual(disclosureButtons.count, MockSpaceSelectorService.defaultSpaceList.filter { $0.hasSubItems }.count)
XCTAssertEqual(disclosureButtons.count, MockSpaceSelectorService.defaultSpaceList.filter(\.hasSubItems).count)
let notificationBadges = app.staticTexts.matching(identifier: "notificationBadge").allElementsBoundByIndex
let itemsWithNotifications = MockSpaceSelectorService.defaultSpaceList.filter { $0.notificationCount > 0 || !$0.isJoined }
@@ -65,5 +64,4 @@ class SpaceSelectorUITests: MockScreenTestCase {
XCTAssertEqual(app.staticTexts["emptyListPlaceholderMessage"].exists, exists)
XCTAssertEqual(app.buttons["createSpaceButton"].exists, exists)
}
}
@@ -1,4 +1,4 @@
//
//
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,13 +14,12 @@
// limitations under the License.
//
import XCTest
import Combine
import XCTest
@testable import RiotSwiftUI
class SpaceSelectorViewModelTests: XCTestCase {
var service: MockSpaceSelectorService!
var viewModel: SpaceSelectorViewModelProtocol!
var context: SpaceSelectorViewModelType.Context!
@@ -37,5 +36,4 @@ class SpaceSelectorViewModelTests: XCTestCase {
XCTAssertEqual(context.viewState.items, MockSpaceSelectorService.defaultSpaceList)
XCTAssertEqual(context.viewState.navigationTitle, VectorL10n.spaceSelectorTitle)
}
}