diff options
Diffstat (limited to 'tpl/partials/partials_integration_test.go')
-rw-r--r-- | tpl/partials/partials_integration_test.go | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/tpl/partials/partials_integration_test.go b/tpl/partials/partials_integration_test.go index e48f3bb20..f2bde29c3 100644 --- a/tpl/partials/partials_integration_test.go +++ b/tpl/partials/partials_integration_test.go @@ -39,12 +39,7 @@ partial: {{ partials.Include "foo.html" . }} foo ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` partial: foo @@ -64,12 +59,7 @@ partialCached: {{ partials.IncludeCached "foo.html" . }} foo ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` partialCached: foo @@ -93,12 +83,7 @@ P2 ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` P2 @@ -130,12 +115,7 @@ P2 ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", ` SHORT @@ -180,12 +160,7 @@ D1 ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) // fmt.Println(b.FileContent("public/index.html")) @@ -340,12 +315,7 @@ FOO:{{ $r.Content }} BAR ` - b := hugolib.NewIntegrationTestBuilder( - hugolib.IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", "OO:BAR") } |