Skip to content

Commit 9dd4ee6

Browse files
committed
Naming
1 parent 6769762 commit 9dd4ee6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class IconParserTests(ITestOutputHelper output) : InlineTest(output,
1818
)
1919
{
2020
[Fact]
21-
public void ReplacesKnownIconsAndIgnoresInvalid() =>
21+
public void Render() =>
2222
Html.Should().Contain("<span aria-label=\"Icon for check\" class=\"icon icon-check\">")
2323
.And.Contain("<span aria-label=\"Icon for cross\" class=\"icon icon-cross\">")
2424
.And.Contain("<span aria-label=\"Icon for warning\" class=\"icon icon-warning\">")
@@ -39,9 +39,21 @@ public class IconInListItemTest(ITestOutputHelper output) : InlineTest(output,
3939
)
4040
{
4141
[Fact]
42-
public void ReplacesKnownIconsAndIgnoresInvalid() =>
42+
public void Render() =>
4343
Html.Should()
4444
.Contain("<span aria-label=\"Icon for check\" class=\"icon icon-check\">")
4545
.And.NotContain(":check:")
4646
.And.NotContain("<li></li>");
4747
}
48+
49+
public class IconInHeadingShouldBeRemovedFromAnchor(ITestOutputHelper output) : InlineTest(output,
50+
"""
51+
## Users :user:
52+
"""
53+
)
54+
{
55+
[Fact]
56+
public void Render() =>
57+
Html.Should()
58+
.Contain("<a class=\"headerlink\" href=\"#users\">");
59+
}

0 commit comments

Comments
 (0)