Skip to content

Commit

Permalink
hubolig: Add a render hook whitespace test
Browse files Browse the repository at this point in the history
See #6832
  • Loading branch information
bep committed Jan 31, 2020
1 parent 2d159e9 commit 5859586
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hugolib/content_render_hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ layout: mylayout
[Some Text](https://www.google.com "Google's Homepage")
,[No Whitespace Please](https://gohugo.io),
`, "blog/p3.md", `---
Expand Down Expand Up @@ -143,7 +145,10 @@ SHORT3|
`)

b.AssertFileContent("public/customview/p1/index.html", `.Render: myrender: Custom View|P4: PARTIAL4`)
b.AssertFileContent("public/blog/p2/index.html", `PARTIAL`)
b.AssertFileContent("public/blog/p2/index.html",
`PARTIAL
,Cool Page2|https://gohugo.io|Title: |Text: No Whitespace Please|END,`,
)
b.AssertFileContent("public/blog/p3/index.html", `PARTIAL3`)
// We may add type template support later, keep this for then. b.AssertFileContent("public/docs/docs1/index.html", `Link docs section: Docs 1|END`)
b.AssertFileContent("public/blog/p4/index.html", `<p>IMAGE: Cool Page With Image||/images/Dragster.jpg|Title: image title|Text: Drag Racing|END</p>`)
Expand Down

0 comments on commit 5859586

Please sign in to comment.