mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Preview Tests (#1768)
* preview testing * removed some views that are not really testabl in UnitTests and improved other tests
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ struct NotificationSettingsEditScreen: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
struct NotificationSettingsEditScreen_Previews: PreviewProvider {
|
||||
struct NotificationSettingsEditScreen_Previews: PreviewProvider, TestablePreview {
|
||||
static let viewModelGroupChats: NotificationSettingsEditScreenViewModel = {
|
||||
let notificationSettingsProxy = NotificationSettingsProxyMock(with: .init())
|
||||
notificationSettingsProxy.getDefaultRoomNotificationModeIsEncryptedIsOneToOneReturnValue = .allMessages
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ struct NotificationSettingsEditScreenRoomCell: View {
|
||||
}
|
||||
}
|
||||
|
||||
struct NotificationSettingsEditScreenRoomCell_Previews: PreviewProvider {
|
||||
struct NotificationSettingsEditScreenRoomCell_Previews: PreviewProvider, TestablePreview {
|
||||
static var previews: some View {
|
||||
let summaryProvider = MockRoomSummaryProvider(state: .loaded(.mockRooms))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user