mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Render location events in the timeline (#1136)
* Start location integration in the timeline * Add warning * Add LocationRoomTimelineView * Add GeoURI * Refine LocationRoomTimelineView * Refine LocationRoomTimelineView * Add LocationRoomTimelineView previews * Cleanup code * Mock reply * Add FF for location events * Update project file * Fix MapLibreStaticMapView placeholder * Add MapTilerAttribution * Add LocationPinView * Fix layout * Start reply rendering * Refactor ReplyView.Icon * Add localisations * Fix reactions * Amend GeoURI regex * Add log * Fix tests * Attribution placement refactor * Cleanup * Replace NSRegularExpression with a regex * Cleanup * Update unit tests * isMediaType -> shouldFillBubble
This commit is contained in:
@@ -34,14 +34,14 @@ class InvitesScreenViewModelTests: XCTestCase {
|
||||
|
||||
func testEmptyState() async throws {
|
||||
setupViewModel()
|
||||
_ = await context.$viewState.values.first(where: { $0.invites != nil })
|
||||
_ = await context.$viewState.values.first()
|
||||
let invites = try XCTUnwrap(context.viewState.invites)
|
||||
XCTAssertTrue(invites.isEmpty)
|
||||
}
|
||||
|
||||
func testListState() async throws {
|
||||
setupViewModel(roomSummaries: .mockInvites)
|
||||
_ = await context.$viewState.values.first(where: { $0.invites != nil })
|
||||
_ = await context.$viewState.values.first(where: { !$0.invites.isEmpty })
|
||||
let invites = try XCTUnwrap(context.viewState.invites)
|
||||
XCTAssertEqual(invites.count, 2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user