mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
hugolib: Test helper cleanup
This commit is contained in:
parent
10c13f5d79
commit
ed847ed93d
14 changed files with 214 additions and 208 deletions
|
@ -56,9 +56,9 @@ func doTestSitemapOutput(t *testing.T, internal bool) {
|
|||
|
||||
writeSourcesToSource(t, "content", fs, weightedSources...)
|
||||
s := buildSingleSite(t, depsCfg, BuildCfg{})
|
||||
th := testHelper{s.Cfg}
|
||||
th := testHelper{s.Cfg, s.Fs, t}
|
||||
|
||||
th.assertFileContent(t, s.Fs, "public/sitemap.xml", true,
|
||||
th.assertFileContent("public/sitemap.xml", true,
|
||||
// Regular page
|
||||
" <loc>http://auth/bub/sect/doc1/</loc>",
|
||||
// Home page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue