mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Abstract html/template dependency
Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
committed by
Noah Campbell
parent
0a9dc705f3
commit
ee5865f239
@@ -142,13 +142,13 @@ func checkPageTitle(t *testing.T, page *Page, title string) {
|
||||
}
|
||||
|
||||
func checkPageContent(t *testing.T, page *Page, content string) {
|
||||
if page.Content != template.HTML(content) {
|
||||
if page.Content != HTML(content) {
|
||||
t.Fatalf("Page content is: %s. Expected %s", page.Content, content)
|
||||
}
|
||||
}
|
||||
|
||||
func checkPageSummary(t *testing.T, page *Page, summary string) {
|
||||
if page.Summary != template.HTML(summary) {
|
||||
if page.Summary != HTML(summary) {
|
||||
t.Fatalf("Page summary is: `%s`. Expected `%s`", page.Summary, summary)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user