mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Annotate test assertions
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
37ab1cf12a
commit
71832328f8
@@ -65,20 +65,25 @@ tags: ['T1']
|
||||
)
|
||||
b.Build()
|
||||
|
||||
b.AssertFileContent("public/en/posts/index.html",
|
||||
"<ul><li>Posts-en</li></ul>",
|
||||
)
|
||||
b.AssertFileContent("public/en/posts/p1/index.html",
|
||||
"<ul><li>P1-en</li></ul>",
|
||||
)
|
||||
b.AssertFileContent("public/en/tags/index.html",
|
||||
"<ul><li>Tags-en</li></ul>",
|
||||
)
|
||||
b.AssertFileContent("public/en/tags/t1/index.html",
|
||||
"<ul><li>T1-en</li></ul>",
|
||||
)
|
||||
// Kind home
|
||||
b.AssertFileContent("public/en/index.html",
|
||||
"<ul><li>Issue-9073-en</li></ul>",
|
||||
)
|
||||
// Kind section
|
||||
b.AssertFileContent("public/en/posts/index.html",
|
||||
"<ul><li>Posts-en</li></ul>",
|
||||
)
|
||||
// Kind page
|
||||
b.AssertFileContent("public/en/posts/p1/index.html",
|
||||
"<ul><li>P1-en</li></ul>",
|
||||
)
|
||||
// Kind taxonomy
|
||||
b.AssertFileContent("public/en/tags/index.html",
|
||||
"<ul><li>Tags-en</li></ul>",
|
||||
)
|
||||
// Kind term
|
||||
b.AssertFileContent("public/en/tags/t1/index.html",
|
||||
"<ul><li>T1-en</li></ul>",
|
||||
)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user