mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
ea633dd809
commit
21366e0411
1 changed files with 2 additions and 5 deletions
|
@ -161,7 +161,6 @@ title: "p3"
|
||||||
b.AssertFileContent("public/page/2/index.html", "pagination-default")
|
b.AssertFileContent("public/page/2/index.html", "pagination-default")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestMapUglyURLs(t *testing.T) {
|
func TestMapUglyURLs(t *testing.T) {
|
||||||
files := `
|
files := `
|
||||||
-- hugo.toml --
|
-- hugo.toml --
|
||||||
|
@ -173,8 +172,6 @@ func TestMapUglyURLs(t *testing.T) {
|
||||||
|
|
||||||
c := b.H.Configs.Base
|
c := b.H.Configs.Base
|
||||||
|
|
||||||
mapUglyURLs, isMap := c.UglyURLs.(map[string]bool)
|
b.Assert(c.C.IsUglyURLSection("posts"), qt.IsTrue)
|
||||||
|
b.Assert(c.C.IsUglyURLSection("blog"), qt.IsFalse)
|
||||||
b.Assert(isMap, qt.Equals, true)
|
|
||||||
b.Assert(mapUglyURLs["posts"], qt.Equals, true)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue