aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-01-28 22:11:05 +0100
committerBjørn Erik Pedersen <[email protected]>2024-01-28 22:17:22 +0100
commit982d9513e71b3d48e20cfa38454a0e1215a8d963 (patch)
tree47ece9af143bfbd52fa0e5174f9349b8c04c3211 /hugolib/site_test.go
parent6dedb4efc7b6a9fbe58a2daf0f77182638840fd9 (diff)
downloadhugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.tar.gz
hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.zip
testing: Simplify some integration tests
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go21
1 files changed, 3 insertions, 18 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index cf0d4a032..967fb827d 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -436,12 +436,7 @@ MainSections Site method: {{ site.MainSections }}|
`
- b := NewIntegrationTestBuilder(
- IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
+ b := Test(t, files)
b.AssertFileContent("public/index.html", `
MainSections Params: [a b]|
@@ -469,12 +464,7 @@ MainSections Site method: {{ site.MainSections }}|
`
- b := NewIntegrationTestBuilder(
- IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
+ b := Test(t, files)
b.AssertFileContent("public/index.html", `
MainSections Params: [a b]|
@@ -497,12 +487,7 @@ MainSections Site method: {{ site.MainSections }}|
`
- b := NewIntegrationTestBuilder(
- IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
+ b := Test(t, files)
b.AssertFileContent("public/index.html", `
MainSections Params: [mysect]|