mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
feat: decline and block screen
fix improvement fix conflict fix tests tests
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Copyright 2022-2024 New Vector Ltd.
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
@testable import ElementX
|
||||
|
||||
@MainActor
|
||||
class DeclineAndBlockScreenViewModelTests: XCTestCase {
|
||||
var viewModel: DeclineAndBlockScreenViewModelProtocol!
|
||||
|
||||
var context: DeclineAndBlockScreenViewModelType.Context {
|
||||
viewModel.context
|
||||
}
|
||||
}
|
||||
@@ -321,7 +321,7 @@ class HomeScreenViewModelTests: XCTestCase {
|
||||
|
||||
return .invited(roomProxy)
|
||||
}
|
||||
context.viewState.bindings.alertInfo?.primaryButton.action?()
|
||||
context.viewState.bindings.alertInfo?.secondaryButton?.action?()
|
||||
await fulfillment(of: [rejectExpectation], timeout: 1.0)
|
||||
|
||||
XCTAssertEqual(appSettings.seenInvites, [invitedRoomIDs[1]])
|
||||
|
||||
Reference in New Issue
Block a user