Skip to content

Commit

Permalink
Fix more UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
alfogrillo committed Jul 12, 2023
1 parent 049c4fa commit 14e6855
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UnitTests/Sources/HomeScreenViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,9 @@ class HomeScreenViewModelTests: XCTestCase {
let room: RoomProxyMock = .init(with: .init(id: mockRoomId, displayName: "Some room"))
room.leaveRoomClosure = { .failure(.failedLeavingRoom) }
clientProxy.roomForIdentifierMocks[mockRoomId] = room
let deferred = deferFulfillment(context.$viewState.first(), message: "viewState should be published.")
context.send(viewAction: .confirmLeaveRoom(roomIdentifier: mockRoomId))
try await deferred.fulfill()
XCTAssertNotNil(context.alertInfo)
let state = await context.nextViewState()
XCTAssertNotNil(state?.bindings.alertInfo)
}

func testLeaveRoomSuccess() async throws {
Expand Down

0 comments on commit 14e6855

Please sign in to comment.