Skip to content

Commit a51aff1

Browse files
committed
Test fixups due to highlight.js improvements
1 parent 7f3b586 commit a51aff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Statiq.Web.Tests/Pipelines/ContentFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ public async Task ShouldHighlightCode()
719719
IDocument document = result.Outputs[nameof(Content)][Phase.PostProcess].ShouldHaveSingleItem();
720720
document.Destination.ShouldBe("foo.html");
721721
document.GetContentStringAsync().Result.ShouldBe(
722-
"<html><head></head><body><pre><code class=\"language-ebnf hljs\"><span class=\"hljs-attribute\">int foo</span> = 1;</code></pre></body></html>",
722+
"<html><head></head><body><pre><code class=\"language-cpp hljs\"><span class=\"hljs-type\">int</span> foo = <span class=\"hljs-number\">1</span>;</code></pre></body></html>",
723723
StringCompareShould.IgnoreLineEndings);
724724
}
725725

0 commit comments

Comments
 (0)