summaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-03-22 11:34:17 +0100
committerBjørn Erik Pedersen <[email protected]>2017-03-27 15:43:56 +0200
commitdbb83f925a7cb256b69b158e2caf0d99e3c7c5e6 (patch)
tree2ad59d18c8f0847cf2f8bd3938327a4c9d462483 /media
parent4aaed87dd97b085b1505e53b7d4564aa8f7f18ef (diff)
downloadhugo-dbb83f925a7cb256b69b158e2caf0d99e3c7c5e6.tar.gz
hugo-dbb83f925a7cb256b69b158e2caf0d99e3c7c5e6.zip
hugolib: Read default output formats from site config
Diffstat (limited to 'media')
-rw-r--r--media/mediaType_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go
index 41cc48369..e9de66d0e 100644
--- a/media/mediaType_test.go
+++ b/media/mediaType_test.go
@@ -24,14 +24,14 @@ func TestDefaultTypes(t *testing.T) {
require.Equal(t, "html", HTMLType.SubType)
require.Equal(t, "html", HTMLType.Suffix)
- require.Equal(t, "text/html", HTMLType.MainType())
+ require.Equal(t, "text/html", HTMLType.Type())
require.Equal(t, "text/html+html", HTMLType.String())
require.Equal(t, "application", RSSType.MainType)
require.Equal(t, "rss", RSSType.SubType)
require.Equal(t, "xml", RSSType.Suffix)
- require.Equal(t, "application/rss", RSSType.MainType())
+ require.Equal(t, "application/rss", RSSType.Type())
require.Equal(t, "application/rss+xml", RSSType.String())
}