diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:11:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:17:22 +0100 |
commit | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (patch) | |
tree | 47ece9af143bfbd52fa0e5174f9349b8c04c3211 /hugolib/sitemap_test.go | |
parent | 6dedb4efc7b6a9fbe58a2daf0f77182638840fd9 (diff) | |
download | hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.tar.gz hugo-982d9513e71b3d48e20cfa38454a0e1215a8d963.zip |
testing: Simplify some integration tests
Diffstat (limited to 'hugolib/sitemap_test.go')
-rw-r--r-- | hugolib/sitemap_test.go | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/hugolib/sitemap_test.go b/hugolib/sitemap_test.go index be13ba1f4..6c2cbc557 100644 --- a/hugolib/sitemap_test.go +++ b/hugolib/sitemap_test.go @@ -39,12 +39,7 @@ title: doc2 Doc2 ` - b := NewIntegrationTestBuilder( - IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := Test(t, files) b.AssertFileContent("public/sitemap.xml", " <loc>https://example.com/sect/doc1/</loc>", "doc2") } @@ -81,12 +76,7 @@ title: doc2 Doc2 ` - b := NewIntegrationTestBuilder( - IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := Test(t, files) b.AssertFileContent("public/sitemap.xml", "<loc>https://example.com/en/sitemap.xml</loc>", "<loc>https://example.com/nn/sitemap.xml</loc>") b.AssertFileContent("public/en/sitemap.xml", " <loc>https://example.com/sect/doc1/</loc>", "doc2") @@ -109,12 +99,7 @@ outputs: [ "html", "amp" ] ` - b := NewIntegrationTestBuilder( - IntegrationTestConfig{ - T: t, - TxtarString: files, - }, - ).Build() + b := Test(t, files) // Should link to the HTML version. b.AssertFileContent("public/sitemap.xml", " <loc>https://example.com/blog/html-amp/</loc>") |