diff options
Diffstat (limited to 'minifiers/minifiers_test.go')
-rw-r--r-- | minifiers/minifiers_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/minifiers/minifiers_test.go b/minifiers/minifiers_test.go index 6d72dc44e..a0f0f97b4 100644 --- a/minifiers/minifiers_test.go +++ b/minifiers/minifiers_test.go @@ -32,4 +32,10 @@ func TestNew(t *testing.T) { assert.NoError(m.Minify(media.CSSType, &b, strings.NewReader("body { color: blue; }"))) assert.Equal("body{color:blue}", b.String()) + + b.Reset() + + // RSS should be handled as XML + assert.NoError(m.Minify(media.RSSType, &b, strings.NewReader("<hello> Hugo! </hello> "))) + assert.Equal("<hello>Hugo!</hello>", b.String()) } |