ref: fa28df1058e0131364cea2e3ac7f80e934d024a1
parent: 072aa7f110ddc8a8b9dbc6d4cad3e5ba6c2ac4d0
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Wed Jul 24 15:50:34 EDT 2019
hugolib: Fix broken test
--- a/hugolib/collections_test.go
+++ b/hugolib/collections_test.go
@@ -123,7 +123,7 @@
pageContent := `
---
-title: "Page"
+title: "Page %d"
tags: ["blue", "green"]
tags_weight: %d
---
@@ -131,8 +131,8 @@
`
b := newTestSitesBuilder(t)
b.WithSimpleConfigFile().
- WithContent("page1.md", fmt.Sprintf(pageContent, 10), "page2.md", fmt.Sprintf(pageContent, 20),
- "page3.md", fmt.Sprintf(pageContent, 30)).
+ WithContent("page1.md", fmt.Sprintf(pageContent, 10, 10), "page2.md", fmt.Sprintf(pageContent, 20, 20),
+ "page3.md", fmt.Sprintf(pageContent, 30, 30)).
WithTemplatesAdded("index.html", `
{{ $uniqPages := first 2 .Site.RegularPages | append .Site.RegularPages | uniq }}
{{ $inTrue := in .Site.RegularPages (index .Site.RegularPages 1) }}