mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 18:44:46 -04:00
Annotate test assertions
This commit is contained in:
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>",
|
||||
)
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user