mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Fixes 1864 - Message forwarding room list filtering and pagination problems (#1867)
* Fixes 1864 - Message forwarding room list filtering and pagination problems * Fix SwiftFormat redundant closures body error * Prevent crashes when writing to the localization bundle cache from different threads * Fix unit tests * Fix unit tests * Address PR comments
This commit is contained in:
@@ -40,9 +40,14 @@ class MessageForwardingScreenViewModelTests: XCTestCase {
|
||||
XCTAssertEqual(context.viewState.selectedRoomID, "2")
|
||||
}
|
||||
|
||||
func testSearching() {
|
||||
func testSearching() async throws {
|
||||
let defered = deferFulfillment(context.$viewState) { state in
|
||||
state.rooms.count == 1
|
||||
}
|
||||
|
||||
context.searchQuery = "Second"
|
||||
XCTAssertEqual(context.viewState.visibleRooms.count, 1)
|
||||
|
||||
try await defered.fulfill()
|
||||
}
|
||||
|
||||
func testForwarding() {
|
||||
|
||||
Reference in New Issue
Block a user