mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Annotate test assertions
This commit is contained in:
parent
37ab1cf12a
commit
71832328f8
1 changed files with 17 additions and 12 deletions
|
@ -65,20 +65,25 @@ tags: ['T1']
|
||||||
)
|
)
|
||||||
b.Build()
|
b.Build()
|
||||||
|
|
||||||
b.AssertFileContent("public/en/posts/index.html",
|
// Kind home
|
||||||
"<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>",
|
|
||||||
)
|
|
||||||
b.AssertFileContent("public/en/index.html",
|
b.AssertFileContent("public/en/index.html",
|
||||||
"<ul><li>Issue-9073-en</li></ul>",
|
"<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>",
|
||||||
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue