mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Remove the protocol for SpaceServiceRoom given its a struct type. (#5000)
* Remove the protocol for SpaceServiceRoom given its a struct type. * Fix a few missed mocks in the unit tests.
This commit is contained in:
@@ -223,7 +223,7 @@ class CreateRoomScreenViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testCreateRoomInASelectedSpaceFromTheList() async throws {
|
||||
let spaces = [SpaceServiceRoomProtocol].mockJoinedSpaces2
|
||||
let spaces = [SpaceServiceRoom].mockJoinedSpaces2
|
||||
setup()
|
||||
|
||||
context.send(viewAction: .updateRoomName("A"))
|
||||
@@ -272,7 +272,7 @@ class CreateRoomScreenViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testCreateRoomInAnAlreadySelectedSpace() async throws {
|
||||
let space = SpaceServiceRoomMock(.init(isSpace: true, joinRule: .private))
|
||||
let space = SpaceServiceRoom.mock(isSpace: true, joinRule: .private)
|
||||
setup(spacesSelectionMode: .preSelected(space))
|
||||
|
||||
context.send(viewAction: .updateRoomName("A"))
|
||||
@@ -307,7 +307,7 @@ class CreateRoomScreenViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testCreateRoomInAnPublicSpaceAvailableTypes() async throws {
|
||||
let space = SpaceServiceRoomMock(.init(isSpace: true, joinRule: .public))
|
||||
let space = SpaceServiceRoom.mock(isSpace: true, joinRule: .public)
|
||||
setup(spacesSelectionMode: .preSelected(space))
|
||||
|
||||
// Given a form with a blank topic.
|
||||
|
||||
Reference in New Issue
Block a user