From 982d9513e71b3d48e20cfa38454a0e1215a8d963 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sun, 28 Jan 2024 22:11:05 +0100 Subject: testing: Simplify some integration tests --- hugolib/site_test.go | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'hugolib/site_test.go') 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]| -- cgit v1.2.3