diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-28 22:11:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-28 22:17:22 +0100 |
commit | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (patch) | |
tree | 47ece9af143bfbd52fa0e5174f9349b8c04c3211 /tpl/templates/templates_integration_test.go | |
parent | 6dedb4efc7b6a9fbe58a2daf0f77182638840fd9 (diff) | |
download | hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.tar.gz hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.zip |
testing: Simplify some integration tests
Diffstat (limited to 'tpl/templates/templates_integration_test.go')
-rw-r--r-- | tpl/templates/templates_integration_test.go | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/tpl/templates/templates_integration_test.go b/tpl/templates/templates_integration_test.go index 7e0bcc824..301f783a5 100644 --- a/tpl/templates/templates_integration_test.go +++ b/tpl/templates/templates_integration_test.go @@ -34,12 +34,7 @@ partials/doesnotexist.html: {{ templates.Exists "partials/doesnotexist.html" }} -- layouts/partials/foo.html -- ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` index.html: true @@ -69,12 +64,7 @@ post/doesnotexist.html: {{ templates.Exists "post/doesnotexist.html" }} ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` index.html: true @@ -96,12 +86,7 @@ Home: {{ page.IsHome }} ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` Home: true |