mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add unit tests for the new AttributedStringBuilder, initially as a copy of the old ones.
This commit is contained in:
+6
-2
@@ -8,10 +8,14 @@
|
||||
@testable import ElementX
|
||||
import XCTest
|
||||
|
||||
class AttributedStringBuilderTests: XCTestCase {
|
||||
private lazy var attributedStringBuilder = AttributedStringBuilder(mentionBuilder: MentionBuilder())
|
||||
class AttributedStringBuilderV1Tests: XCTestCase {
|
||||
private var attributedStringBuilder: AttributedStringBuilder!
|
||||
private let maxHeaderPointSize = ceil(UIFont.preferredFont(forTextStyle: .body).pointSize * 1.2)
|
||||
|
||||
override func setUp() async throws {
|
||||
attributedStringBuilder = AttributedStringBuilder(mentionBuilder: MentionBuilder())
|
||||
}
|
||||
|
||||
func testRenderHTMLStringWithHeaders() {
|
||||
let h1HTMLString = "<h1>Large Heading</h1>"
|
||||
let h2HTMLString = "<h2>Smaller Heading</h2>"
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user