JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
634 stars 30 forks source link

Fix Markdown styling usage, and add semantics support #397

Closed rock3r closed 3 weeks ago

rock3r commented 3 weeks ago

Usage in tests:

fun SemanticsNodeInteraction.assertMarkdownEquals(
  expected: String
): SemanticsNodeInteraction =
  assert(hasMarkdownExactly(expected))

private fun hasMarkdownExactly(expected: String): SemanticsMatcher =
  SemanticsMatcher.expectValue(RawMarkdown, expected)