diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-10-14 09:28:18 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-10-14 10:03:44 +0200 |
commit | 21366e04111592a585a2c6754c00b84ab5048a13 (patch) | |
tree | 7480e03dbeb4f432657e6e3a38179dd2b7deed7b | |
parent | ea633dd809233d9f59b605bfe1955bcc1417c3fe (diff) | |
download | hugo-21366e04111592a585a2c6754c00b84ab5048a13.tar.gz hugo-21366e04111592a585a2c6754c00b84ab5048a13.zip |
config: Imrove uglyurls section test
Updates #12926
-rw-r--r-- | config/allconfig/allconfig_integration_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/config/allconfig/allconfig_integration_test.go b/config/allconfig/allconfig_integration_test.go index 1b677884f..38e763b70 100644 --- a/config/allconfig/allconfig_integration_test.go +++ b/config/allconfig/allconfig_integration_test.go @@ -161,7 +161,6 @@ title: "p3" b.AssertFileContent("public/page/2/index.html", "pagination-default") } - func TestMapUglyURLs(t *testing.T) { files := ` -- hugo.toml -- @@ -173,8 +172,6 @@ func TestMapUglyURLs(t *testing.T) { c := b.H.Configs.Base - mapUglyURLs, isMap := c.UglyURLs.(map[string]bool) - - b.Assert(isMap, qt.Equals, true) - b.Assert(mapUglyURLs["posts"], qt.Equals, true) + b.Assert(c.C.IsUglyURLSection("posts"), qt.IsTrue) + b.Assert(c.C.IsUglyURLSection("blog"), qt.IsFalse) } |