minifiers: Add failing test for upstream bug

See #13082
This commit is contained in:
Bjørn Erik Pedersen 2024-11-23 14:28:20 +01:00
parent 8d017a60fb
commit 5a50eee9da

View file

@ -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