Update SDK to 1.0.75-alpha (#1075)

* Update SDK to 1.0.75-alpha

* Fix mocks
This commit is contained in:
Alfonso Grillo
2023-06-14 10:49:59 +02:00
committed by GitHub
parent 09ed9ddff5
commit 1c2964c86d
4 changed files with 25 additions and 4 deletions
@@ -421,6 +421,27 @@ class SDKClientMock: SDKClientProtocol {
return roomsReturnValue
}
}
//MARK: - `roomList`
public var roomListThrowableError: Error?
public var roomListCallsCount = 0
public var roomListCalled: Bool {
return roomListCallsCount > 0
}
public var roomListReturnValue: RoomList!
public var roomListClosure: (() throws -> RoomList)?
public func `roomList`() throws -> RoomList {
if let error = roomListThrowableError {
throw error
}
roomListCallsCount += 1
if let roomListClosure = roomListClosure {
return try roomListClosure()
} else {
return roomListReturnValue
}
}
//MARK: - `searchUsers`
public var searchUsersSearchTermLimitThrowableError: Error?