Skip to content

Commit 057e7fb

Browse files
committed
Fix failing unit test on macOS
1 parent 951834a commit 057e7fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tests/RichTextKitTests/_Foundation/RichTextCoordinatorTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@ final class RichTextCoordinatorTests: XCTestCase {
9898
XCTAssertEqual(context.styles[.italic], styles.hasStyle(.italic))
9999
XCTAssertEqual(context.styles[.underlined], styles.hasStyle(.underlined))
100100
XCTAssertEqual(context.selectedRange, view.selectedRange)
101-
#if iOS || os(tvOS)
101+
#if iOS || os(tvOS) || os(macOS)
102102
XCTAssertEqual(context.paragraphStyleValue(for: \.alignment), view.richTextParagraphStyleValue(\.alignment))
103-
#elseif macOS
104-
XCTAssertEqual(context.textAlignment, macOSAlignment)
105103
#endif
106104
}
107105

0 commit comments

Comments
 (0)