mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Better integrate RoomPowerLevelsProxyMock's own Configuration struct.
This commit is contained in:
committed by
Stefan Ceriu
parent
f522e15dac
commit
cbf405a67e
@@ -494,7 +494,8 @@ class TimelineViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testCanUserPinEvents() async throws {
|
||||
let configuration = JoinedRoomProxyMockConfiguration(name: "", canUserPin: true)
|
||||
let configuration = JoinedRoomProxyMockConfiguration(name: "",
|
||||
powerLevelsConfiguration: .init(canUserPin: true))
|
||||
let roomProxyMock = JoinedRoomProxyMock(configuration)
|
||||
let infoSubject = CurrentValueSubject<RoomInfoProxy, Never>(.init(roomInfo: RoomInfo(configuration)))
|
||||
roomProxyMock.underlyingInfoPublisher = infoSubject.asCurrentValuePublisher()
|
||||
|
||||
Reference in New Issue
Block a user