mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-07 01:21:37 +00:00
fix(ios): isolate typography spacing test on main actor (#1812)
This commit is contained in:
@@ -19,7 +19,8 @@ struct TypographyTests {
|
||||
#expect(large.headingSize(3) > large.bodySize)
|
||||
}
|
||||
|
||||
@Test func markdownMarginsAreBetweenBlocksNotStackedPadding() {
|
||||
@Test @MainActor
|
||||
func markdownMarginsAreBetweenBlocksNotStackedPadding() {
|
||||
let paragraph = MarkdownBlockNode.paragraph(AttributedString("Body"))
|
||||
let heading = MarkdownBlockNode.heading(level: 2, AttributedString("Heading"))
|
||||
#expect(MarkdownBlockListView.spacing(before: heading, after: nil) == 0)
|
||||
|
||||
Reference in New Issue
Block a user