mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Replace the old MockUserSession with the generated UserSessionMock
This commit is contained in:
committed by
Stefan Ceriu
parent
a126715ba0
commit
3a904ebc9d
@@ -25,7 +25,7 @@ class ReportContentScreenViewModelTests: XCTestCase {
|
||||
|
||||
func testReportContent() async throws {
|
||||
// Given the report content view for some content.
|
||||
let roomProxy = RoomProxyMock(with: .init(name: "test"))
|
||||
let roomProxy = RoomProxyMock(.init(name: "test"))
|
||||
roomProxy.reportContentReasonReturnValue = .success(())
|
||||
let clientProxy = ClientProxyMock(.init())
|
||||
let viewModel = ReportContentScreenViewModel(eventID: eventID,
|
||||
@@ -54,7 +54,7 @@ class ReportContentScreenViewModelTests: XCTestCase {
|
||||
|
||||
func testReportIgnoringSender() async throws {
|
||||
// Given the report content view for some content.
|
||||
let roomProxy = RoomProxyMock(with: .init(name: "test"))
|
||||
let roomProxy = RoomProxyMock(.init(name: "test"))
|
||||
roomProxy.reportContentReasonReturnValue = .success(())
|
||||
let clientProxy = ClientProxyMock(.init())
|
||||
let viewModel = ReportContentScreenViewModel(eventID: eventID,
|
||||
|
||||
Reference in New Issue
Block a user