mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
testing: Simplify some integration tests
This commit is contained in:
parent
6dedb4efc7
commit
982d9513e7
32 changed files with 93 additions and 583 deletions
|
@ -20,7 +20,6 @@ import (
|
|||
)
|
||||
|
||||
func TestGroupByLocalizedDate(t *testing.T) {
|
||||
|
||||
files := `
|
||||
-- config.toml --
|
||||
defaultContentLanguage = 'en'
|
||||
|
@ -72,7 +71,6 @@ date: "2020-02-01"
|
|||
}
|
||||
|
||||
func TestPagesSortCollation(t *testing.T) {
|
||||
|
||||
files := `
|
||||
-- config.toml --
|
||||
defaultContentLanguage = 'en'
|
||||
|
@ -166,12 +164,7 @@ RelPermalink: {{ .RelPermalink }}
|
|||
|
||||
`
|
||||
|
||||
b := hugolib.NewIntegrationTestBuilder(
|
||||
hugolib.IntegrationTestConfig{
|
||||
T: t,
|
||||
TxtarString: files,
|
||||
}).Build()
|
||||
b := hugolib.Test(t, files)
|
||||
|
||||
b.AssertFileContent("public/a/c/d/index.html", "RelPermalink: /a/c/d/")
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue