aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-11-23 14:28:20 +0100
committerBjørn Erik Pedersen <[email protected]>2024-11-23 15:11:09 +0100
commit5a50eee9da934c01e56e3df4c0c425878bc1caff (patch)
tree2d8ff7e29a281acc2e90864435794ad8fc1a41c7
parent8d017a60fb53b3ffb7b57f6c483fe92c3f2813cd (diff)
downloadhugo-5a50eee9da934c01e56e3df4c0c425878bc1caff.tar.gz
hugo-5a50eee9da934c01e56e3df4c0c425878bc1caff.zip
minifiers: Add failing test for upstream bug
See #13082
-rw-r--r--minifiers/minifiers_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/minifiers/minifiers_test.go b/minifiers/minifiers_test.go
index bfd743fae..b81c632fe 100644
--- a/minifiers/minifiers_test.go
+++ b/minifiers/minifiers_test.go
@@ -153,10 +153,12 @@ func TestBugs(t *testing.T) {
rawString string
expectedMinString string
}{
- // https://github.com/gohugoio/hugo/issues/5506
+ // Issue 5506
{media.Builtin.CSSType, " body { color: rgba(000, 000, 000, 0.7); }", "body{color:rgba(0,0,0,.7)}"},
- // https://github.com/gohugoio/hugo/issues/8332
+ // Issue 8332
{media.Builtin.HTMLType, "<i class='fas fa-tags fa-fw'></i> Tags", `<i class='fas fa-tags fa-fw'></i> Tags`},
+ // Issue #13082
+ {media.Builtin.HTMLType, "<gcse:searchresults-only></gcse:searchresults-only>", `<gcse:searchresults-only></gcse:searchresults-only>`},
} {
var b bytes.Buffer