mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
deferFulfillment all the things (#1306)
This commit is contained in:
@@ -55,8 +55,11 @@ class InvitesScreenViewModelTests: XCTestCase {
|
||||
return
|
||||
}
|
||||
setupViewModel(roomSummaries: invites)
|
||||
|
||||
let deferred = deferFulfillment(viewModel.actions.first(), message: "1 action should be published.")
|
||||
context.send(viewAction: .accept(.init(roomDetails: details, isUnread: false)))
|
||||
let action: InvitesScreenViewModelAction? = await viewModel.actions.values.first()
|
||||
let action = try await deferred.fulfill()
|
||||
|
||||
guard case .openRoom(let roomID) = action else {
|
||||
XCTFail("Wrong view model action")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user