fix(ios): isolate typography spacing test on main actor (#1812)

This commit is contained in:
Ananovo
2026-09-11 14:19:13 +08:00
committed by GitHub
parent a02af1d569
commit ebe2c6bd9c
@@ -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)