mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Switch to using proper SDK Mocks everywhere.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import Combine
|
||||
import Foundation
|
||||
import MatrixRustSDK
|
||||
import MatrixRustSDKMocks
|
||||
|
||||
struct TimelineControllerMockConfiguration {
|
||||
var roomProxy: JoinedRoomProxyProtocol?
|
||||
@@ -204,7 +205,7 @@ extension TimelineControllerMock {
|
||||
return .success(())
|
||||
}
|
||||
|
||||
messageEventContentForReturnValue = .init(noHandle: .init())
|
||||
messageEventContentForReturnValue = RoomMessageEventContentWithoutRelationSDKMock()
|
||||
debugInfoForReturnValue = .init(model: "Mock debug description", originalJSON: nil, latestEditJSON: nil)
|
||||
|
||||
eventTimestampForClosure = { [timelineItemsTimestamps] itemID in
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
import Combine
|
||||
import Foundation
|
||||
import MatrixRustSDK
|
||||
import MatrixRustSDKMocks
|
||||
|
||||
extension TimelineProxyMock {
|
||||
struct Configuration {
|
||||
@@ -24,7 +25,7 @@ extension TimelineProxyMock {
|
||||
sendMessageEventContentReturnValue = .success(())
|
||||
sendMessageHtmlInReplyToEventIDIntentionalMentionsReturnValue = .success(())
|
||||
editNewContentReturnValue = .success(())
|
||||
buildMessageContentForHtmlIntentionalMentionsReturnValue = RoomMessageEventContentWithoutRelation(noHandle: .init())
|
||||
buildMessageContentForHtmlIntentionalMentionsReturnValue = RoomMessageEventContentWithoutRelationSDKMock()
|
||||
paginateBackwardsRequestSizeReturnValue = .success(())
|
||||
paginateForwardsRequestSizeReturnValue = .success(())
|
||||
sendReadReceiptForTypeReturnValue = .success(())
|
||||
|
||||
Reference in New Issue
Block a user