Skip to content
Permalink
Browse files

hugolib: Add a simple test for jsonify of Site

Closes #5780
  • Loading branch information...
bep committed Mar 28, 2019
1 parent bb533ca commit 8bfd3a54a4142c397cab69bfa9699e5b5db9b40b
Showing with 3 additions and 1 deletion.
  1. +3 −1 hugolib/siteJSONEncode_test.go
@@ -23,7 +23,9 @@ import (
func TestEncodePage(t *testing.T) {
t.Parallel()

templ := `{{ index .Site.RegularPages 0 | jsonify }}`
templ := `Page: |{{ index .Site.RegularPages 0 | jsonify }}|
Site: {{ site | jsonify }}
`

b := newTestSitesBuilder(t)
b.WithSimpleConfigFile().WithTemplatesAdded("index.html", templ)

0 comments on commit 8bfd3a5

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