mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
fe189fcfed
commit
23062901c0
@@ -7,14 +7,15 @@
|
||||
//
|
||||
|
||||
import Combine
|
||||
import XCTest
|
||||
|
||||
@testable import ElementX
|
||||
import XCTest
|
||||
|
||||
@MainActor
|
||||
class HomeScreenViewModelTests: XCTestCase {
|
||||
var viewModel: HomeScreenViewModelProtocol!
|
||||
var context: HomeScreenViewModelType.Context! { viewModel.context }
|
||||
var context: HomeScreenViewModelType.Context! {
|
||||
viewModel.context
|
||||
}
|
||||
|
||||
var clientProxy: ClientProxyMock!
|
||||
var roomSummaryProvider: RoomSummaryProviderMock!
|
||||
@@ -35,7 +36,7 @@ class HomeScreenViewModelTests: XCTestCase {
|
||||
AppSettings.resetAllSettings()
|
||||
}
|
||||
|
||||
func testSelectRoom() async throws {
|
||||
func testSelectRoom() async {
|
||||
setupViewModel()
|
||||
|
||||
let mockRoomID = "mock_room_id"
|
||||
@@ -60,7 +61,7 @@ class HomeScreenViewModelTests: XCTestCase {
|
||||
XCTAssertEqual(mockRoomID, selectedRoomID)
|
||||
}
|
||||
|
||||
func testTapUserAvatar() async throws {
|
||||
func testTapUserAvatar() async {
|
||||
setupViewModel()
|
||||
|
||||
var correctResult = false
|
||||
@@ -119,7 +120,7 @@ class HomeScreenViewModelTests: XCTestCase {
|
||||
XCTAssertNotNil(context.alertInfo)
|
||||
}
|
||||
|
||||
func testLeaveRoomSuccess() async throws {
|
||||
func testLeaveRoomSuccess() async {
|
||||
setupViewModel()
|
||||
|
||||
let mockRoomID = "1"
|
||||
@@ -147,7 +148,7 @@ class HomeScreenViewModelTests: XCTestCase {
|
||||
XCTAssertTrue(correctResult)
|
||||
}
|
||||
|
||||
func testShowRoomDetails() async throws {
|
||||
func testShowRoomDetails() async {
|
||||
setupViewModel()
|
||||
|
||||
let mockRoomID = "1"
|
||||
|
||||
Reference in New Issue
Block a user