aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-06-28 10:01:44 +0200
committerBjørn Erik Pedersen <[email protected]>2023-06-28 12:33:33 +0200
commit79639c981cf69193fb21d97773d928c089714750 (patch)
tree8a2965fe1b9fdb5c8db812d14cb5e2a58a090bba /tpl
parent9b313cec1bb6ee9b7f7e751a721e65fcdc35691b (diff)
downloadhugo-79639c981cf69193fb21d97773d928c089714750.tar.gz
hugo-79639c981cf69193fb21d97773d928c089714750.zip
Fix output formats and media type per language config regression
Fixes #11159
Diffstat (limited to 'tpl')
-rw-r--r--tpl/collections/integration_test.go37
1 files changed, 14 insertions, 23 deletions
diff --git a/tpl/collections/integration_test.go b/tpl/collections/integration_test.go
index 829aee355..80d2f043a 100644
--- a/tpl/collections/integration_test.go
+++ b/tpl/collections/integration_test.go
@@ -87,21 +87,16 @@ func TestAppendSliceToASliceOfSlices(t *testing.T) {
{{ $obj }}
-
`
- for i := 0; i < 4; i++ {
-
- b := hugolib.NewIntegrationTestBuilder(
- hugolib.IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
-
- b.AssertFileContent("public/index.html", "[[a] [b] [c]]")
+ b := hugolib.NewIntegrationTestBuilder(
+ hugolib.IntegrationTestConfig{
+ T: t,
+ TxtarString: files,
+ },
+ ).Build()
- }
+ b.AssertFileContent("public/index.html", "[[a] [b] [c]]")
}
@@ -120,18 +115,14 @@ func TestAppendNilToSlice(t *testing.T) {
`
- for i := 0; i < 4; i++ {
-
- b := hugolib.NewIntegrationTestBuilder(
- hugolib.IntegrationTestConfig{
- T: t,
- TxtarString: files,
- },
- ).Build()
-
- b.AssertFileContent("public/index.html", "[a &lt;nil&gt;]")
+ b := hugolib.NewIntegrationTestBuilder(
+ hugolib.IntegrationTestConfig{
+ T: t,
+ TxtarString: files,
+ },
+ ).Build()
- }
+ b.AssertFileContent("public/index.html", "[a &lt;nil&gt;]")
}