Skip to content

Commit

Permalink
Fix test when no color set to default text
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikBucher12 committed Feb 13, 2024
1 parent 3f3269c commit da7f863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/RichTextKitTests/RichTextViewRepresentableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ final class RichTextViewComponentTests: XCTestCase {
let string = NSAttributedString(string: "foo bar baz")
view.setup(with: string, format: .rtf)
view.configuration = .standard
view.theme = .standard
XCTAssertEqual(view.richText.string, "foo bar baz")
#if iOS || os(tvOS)
XCTAssertTrue(view.allowsEditingTextAttributes)
Expand All @@ -74,9 +75,9 @@ final class RichTextViewComponentTests: XCTestCase {
XCTAssertEqual(view.contentCompressionResistancePriority(for: .horizontal), .defaultLow)
#if iOS || os(tvOS)
XCTAssertEqual(view.spellCheckingType, .no)
XCTAssertEqual(view.textColor, .textColor)
XCTAssertEqual(view.textColor, nil)
#elseif macOS
XCTAssertEqual(view.textColor, .textColor)
XCTAssertEqual(view.textColor, nil)
#endif
}
}
Expand Down

0 comments on commit da7f863

Please sign in to comment.