diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:11:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:17:22 +0100 |
commit | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (patch) | |
tree | 47ece9af143bfbd52fa0e5174f9349b8c04c3211 /markup/highlight | |
parent | 6dedb4efc7b6a9fbe58a2daf0f77182638840fd9 (diff) | |
download | hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.tar.gz hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.zip |
testing: Simplify some integration tests
Diffstat (limited to 'markup/highlight')
-rw-r--r-- | markup/highlight/highlight_integration_test.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/markup/highlight/highlight_integration_test.go b/markup/highlight/highlight_integration_test.go index b53b585c0..d36bc820a 100644 --- a/markup/highlight/highlight_integration_test.go +++ b/markup/highlight/highlight_integration_test.go @@ -67,13 +67,7 @@ HighlightCodeBlock: Wrapped:{{ $result.Wrapped }}|Inner:{{ $result.Inner }} {{ .Content }} ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - NeedsOsFS: false, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/p1/index.html", "Inline:<code class=\"code-inline language-emacs\"><span class=\"p\">(</span><span class=\"nf\">message</span> <span class=\"s\">"this highlight shortcode"</span><span class=\"p\">)</span></code>:End.", @@ -103,13 +97,7 @@ xəx := 0 {{ .Content }} ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - NeedsOsFS: false, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` <span class="nx">xəx</span> |