Skip to content

Commit

Permalink
minifiers: Add failing test for upstream bug
Browse files Browse the repository at this point in the history
See #13082
  • Loading branch information
bep committed Nov 23, 2024
1 parent 8d017a6 commit 5a50eee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions minifiers/minifiers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a50eee

Please sign in to comment.