Skip to content
Permalink
Browse files

hugolib: Fix broken test

  • Loading branch information...
bep committed Jul 24, 2019
1 parent 072aa7f commit fa28df1058e0131364cea2e3ac7f80e934d024a1
Showing with 3 additions and 3 deletions.
  1. +3 −3 hugolib/collections_test.go
@@ -123,16 +123,16 @@ func TestCollectionsFuncs(t *testing.T) {

pageContent := `
---
title: "Page"
title: "Page %d"
tags: ["blue", "green"]
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) }}

0 comments on commit fa28df1

Please sign in to comment.
You can’t perform that action at this time.