summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_smoke_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-09-19 10:12:29 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-09-19 12:36:01 +0200
commit6dec671fb930029e18ba9aa5135b3a27adcddb21 (patch)
treefa614878e492d099255baf8b6ab0d2cbf4512458 /hugolib/hugo_smoke_test.go
parentc0d7188ec85e7a4b61489e38896108d877f6d902 (diff)
Fix cache key transformed resources
Fixes #6348
Diffstat (limited to 'hugolib/hugo_smoke_test.go')
-rw-r--r--hugolib/hugo_smoke_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/hugolib/hugo_smoke_test.go b/hugolib/hugo_smoke_test.go
index 0cb130960..539e79729 100644
--- a/hugolib/hugo_smoke_test.go
+++ b/hugolib/hugo_smoke_test.go
@@ -301,33 +301,3 @@ The content.
b.CreateSites().Build(BuildCfg{})
}
-
-func TestBundleMany(t *testing.T) {
-
- b := newTestSitesBuilder(t).WithSimpleConfigFile()
- for i := 1; i <= 50; i++ {
- b.WithContent(fmt.Sprintf("bundle%d/index.md", i), fmt.Sprintf(`
----
-title: "Page %d"
----
-
-`, i))
- b.WithSourceFile(fmt.Sprintf("content/bundle%d/data.yaml", i), fmt.Sprintf(`
-data: v%d
-`, i))
- }
-
- b.WithTemplatesAdded("_default/single.html", `
-{{ $yaml := .Resources.GetMatch "*.yaml" }}
-{{ $data := $yaml | transform.Unmarshal }}
-data content: {{ $yaml.Content | safeHTML }}
-data unmarshaled: {{ $data.data }}
-`)
-
- b.CreateSites().Build(BuildCfg{})
-
- for i := 1; i <= 50; i++ {
- b.AssertFileContent(fmt.Sprintf("public/bundle%d/data.yaml", i), fmt.Sprintf("data: v%d", i))
- b.AssertFileContent(fmt.Sprintf("public/bundle%d/index.html", i), fmt.Sprintf("data unmarshaled: v%d", i))
- }
-}