hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit fa28df1058e0131364cea2e3ac7f80e934d024a1
parent 072aa7f110ddc8a8b9dbc6d4cad3e5ba6c2ac4d0
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 24 Jul 2019 19:50:34 +0200

hugolib: Fix broken test

Diffstat:
Mhugolib/collections_test.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hugolib/collections_test.go b/hugolib/collections_test.go
@@ -123,7 +123,7 @@ func TestCollectionsFuncs(t *testing.T) {
 
 	pageContent := `
 ---
-title: "Page"
+title: "Page %d"
 tags: ["blue", "green"]
 tags_weight: %d
 ---
@@ -131,8 +131,8 @@ tags_weight: %d
 `
 	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)  }}