Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikBucher12 committed Feb 20, 2024
1 parent dcd1861 commit 13c6219
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,13 @@ final class RichTextCoordinatorIntegrationTests: XCTestCase {

textView.simulateTyping(of: firstTypingPart)

let attributes = textView.richTextAttributes

textContext.selectRange(NSRange(location: Self.initialAttributedString.length, length: firstTypingPart.count))
XCTAssertEqual(attributes[.font] as? FontRepresentable, FontRepresentable.systemFont(ofSize: 16))
XCTAssertEqual(attributes[.foregroundColor] as? ColorRepresentable, ColorRepresentable.red)
XCTAssertEqual(textView.richTextAttributes[.font] as? FontRepresentable, FontRepresentable.systemFont(ofSize: 16))
XCTAssertEqual(textView.richTextAttributes[.foregroundColor] as? ColorRepresentable, ColorRepresentable.red)

textView.setRichTextStyle(.strikethrough, to: true)
XCTAssertEqual(attributes[.strikethroughStyle] as? Int, 1)
XCTAssertEqual(textView.richTextAttributes[.strikethroughStyle] as? Int, 1)
}
}
#endif

0 comments on commit 13c6219

Please sign in to comment.