Fix unit tests following botched SDK bump

This commit is contained in:
Stefan Ceriu
2023-10-12 11:46:32 +03:00
parent b5e334f4a9
commit 6791a951ce
5 changed files with 10 additions and 10 deletions
@@ -413,7 +413,7 @@ class RoomDetailsScreenViewModelTests: XCTestCase {
// MARK: - Notifications
func testNotificationLoadingSettingsFailure() async throws {
notificationSettingsProxyMock.getNotificationSettingsRoomIdIsEncryptedIsOneToOneThrowableError = NotificationSettingsError.Generic(message: "error")
notificationSettingsProxyMock.getNotificationSettingsRoomIdIsEncryptedIsOneToOneThrowableError = NotificationSettingsError.Generic(msg: "error")
viewModel = RoomDetailsScreenViewModel(accountUserID: "@owner:somewhere.com",
roomProxy: roomProxyMock,
mediaProvider: MockMediaProvider(),
@@ -506,7 +506,7 @@ class RoomDetailsScreenViewModelTests: XCTestCase {
defer {
expectation.fulfill()
}
throw NotificationSettingsError.Generic(message: "unmute error")
throw NotificationSettingsError.Generic(msg: "unmute error")
}
context.send(viewAction: .processToogleMuteNotifications)
await fulfillment(of: [expectation])
@@ -531,7 +531,7 @@ class RoomDetailsScreenViewModelTests: XCTestCase {
defer {
expectation.fulfill()
}
throw NotificationSettingsError.Generic(message: "mute error")
throw NotificationSettingsError.Generic(msg: "mute error")
}
context.send(viewAction: .processToogleMuteNotifications)
await fulfillment(of: [expectation])