summaryrefslogtreecommitdiffstats
path: root/hugolib/renderstring_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-01-28 22:11:05 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-01-28 22:17:22 +0100
commit982d9513e71b3d48e20cfa38454a0e1215a8d963 (patch)
tree47ece9af143bfbd52fa0e5174f9349b8c04c3211 /hugolib/renderstring_test.go
parent6dedb4efc7b6a9fbe58a2daf0f77182638840fd9 (diff)
testing: Simplify some integration tests
Diffstat (limited to 'hugolib/renderstring_test.go')
-rw-r--r--hugolib/renderstring_test.go14
1 files changed, 2 insertions, 12 deletions
diff --git a/hugolib/renderstring_test.go b/hugolib/renderstring_test.go
index 40980bdcb..413943698 100644
--- a/hugolib/renderstring_test.go
+++ b/hugolib/renderstring_test.go
@@ -172,12 +172,7 @@ Has other: {{ .HasShortcode "other" }}
`
- b := NewIntegrationTestBuilder(
- IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
+ b := Test(t, files)
b.AssertFileContent("public/index.html",
`
@@ -213,12 +208,7 @@ title: "P1"
{{ .Content }}
`
- b := NewIntegrationTestBuilder(
- IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
+ b := Test(t, files)
b.AssertFileContent("public/p1/index.html", `TableOfContents`)
}