mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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:
@@ -88,7 +88,7 @@ struct MessageText: UIViewRepresentable {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
struct MessageText_Previews: PreviewProvider {
|
||||
struct MessageText_Previews: PreviewProvider, TestablePreview {
|
||||
private static let defaultFontContainer: AttributeContainer = {
|
||||
var container = AttributeContainer()
|
||||
container.font = UIFont.preferredFont(forTextStyle: .body)
|
||||
|
||||
@@ -30,7 +30,7 @@ struct PillView: View {
|
||||
}
|
||||
}
|
||||
|
||||
struct PillView_Previews: PreviewProvider {
|
||||
struct PillView_Previews: PreviewProvider, TestablePreview {
|
||||
static var previews: some View {
|
||||
PillView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user