Skip to content

Commit 36b67d2

Browse files
committed
Simplify test
1 parent 66337ea commit 36b67d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Elastic.Markdown.Tests/Inline/IconParserTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ public class IconInHeadingShouldBeRemovedFromAnchor(ITestOutputHelper output) :
5353
[Fact]
5454
public void Render() =>
5555
Html.Should()
56-
.Contain("<div class=\"heading-wrapper\" id=\"users\"><h2><a class=\"headerlink\" href=\"#users\">Users <span aria-label=\"Icon for check\" class=\"icon icon-check\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M15.354 4.354 6.5 13.207 1.646 8.354l.708-.708L6.5 11.793l8.146-8.147.708.708Z\" clip-rule=\"evenodd\"/>\n</svg>\n</span></a></h2>\n</div>");
56+
.Contain("<a class=\"headerlink\" href=\"#users\">")
57+
.And.Contain("Users <span aria-label=\"Icon for check\"")
58+
.And.Contain("<svg ");
5759
}

0 commit comments

Comments
 (0)