Skip to content

Commit

Permalink
a few more test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorelli25 committed Dec 19, 2024
1 parent 83de3d8 commit 1fc2b4e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/Elastic.Markdown.Tests/Inline/AnchorLinkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ [Sub Requirements](testing/req.md#sub-requirements)
public void GeneratesHtml() =>
// language=html
Html.Should().Contain(
"""<p><a href="elastic/search-labs/search/req.html#sub-requirements">Sub Requirements</a></p>"""
"""<p><a href="testing/req.html#sub-requirements">Sub Requirements</a></p>"""
);

[Fact]
Expand All @@ -84,7 +84,7 @@ public class ExternalPageAnchorAutoTitleTests(ITestOutputHelper output) : Anchor
public void GeneratesHtml() =>
// language=html
Html.Should().Contain(
"""<p><a href="elastic/search-labs/search/req.html#sub-requirements">Special Requirements &gt; Sub Requirements</a></p>"""
"""<p><a href="testing/req.html#sub-requirements">Special Requirements &gt; Sub Requirements</a></p>"""
);

[Fact]
Expand Down Expand Up @@ -120,7 +120,7 @@ [Sub Requirements](testing/req.md#sub-requirements2)
public void GeneratesHtml() =>
// language=html
Html.Should().Contain(
"""<p><a href="elastic/search-labs/search/req.html#sub-requirements2">Sub Requirements</a></p>"""
"""<p><a href="testing/req.html#sub-requirements2">Sub Requirements</a></p>"""
);

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ [Sub Requirements](testing/req.md#hint_ref)
public void GeneratesHtml() =>
// language=html
Html.Should().Contain(
"""<p><a href="elastic/search-labs/search/req.html#hint_ref">Sub Requirements</a></p>"""
"""<p><a href="testing/req.html#hint_ref">Sub Requirements</a></p>"""
);

[Fact]
Expand Down
4 changes: 2 additions & 2 deletions tests/Elastic.Markdown.Tests/Inline/InlineLinkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class LinkToPageTests(ITestOutputHelper output) : LinkTestBase(output,
public void GeneratesHtml() =>
// language=html
Html.Should().Contain(
"""<p><a href="elastic/search-labs/search/req.html">Requirements</a></p>"""
"""<p><a href="testing/req.html">Requirements</a></p>"""
);

[Fact]
Expand All @@ -77,7 +77,7 @@ public class InsertPageTitleTests(ITestOutputHelper output) : LinkTestBase(outpu
public void GeneratesHtml() =>
// language=html
Html.Should().Contain(
"""<p><a href="elastic/search-labs/search/req.html">Special Requirements</a></p>"""
"""<p><a href="testing/req.html">Special Requirements</a></p>"""
);

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion tests/Elastic.Markdown.Tests/SiteMap/NavigationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void ParsesNestedFoldersAndPrefixesPaths()
Configuration.ImplicitFolders.Should().NotBeNullOrEmpty();

Check failure on line 19 in tests/Elastic.Markdown.Tests/SiteMap/NavigationTests.cs

View workflow job for this annotation

GitHub Actions / build

Elastic.Markdown.Tests.SiteMap.NavigationTests.ParsesNestedFoldersAndPrefixesPaths

Expected Configuration.ImplicitFolders {"testing"} to contain "markup".
Configuration.ImplicitFolders.Should()
.Contain("markup")
.And.Contain("elastic/observability");
.And.Contain("syntax");
}
[Fact]
public void ParsesFilesAndPrefixesPaths() =>
Expand Down

0 comments on commit 1fc2b4e

Please sign in to comment.