diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-22 13:03:42 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 16:43:56 +0300 |
commit | 4aaed87dd97b085b1505e53b7d4564aa8f7f18ef (patch) | |
tree | 4b11670db487dd255dbe6b12fe8cb3fefd7c3ff1 /media/mediaType_test.go | |
parent | c7dbee2321af2f0d61bdc976829681f3799582a9 (diff) |
hugolib, media: Make the MediaType available to the templates
Diffstat (limited to 'media/mediaType_test.go')
-rw-r--r-- | media/mediaType_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go index 64a0a6567..41cc48369 100644 --- a/media/mediaType_test.go +++ b/media/mediaType_test.go @@ -20,18 +20,18 @@ import ( ) func TestDefaultTypes(t *testing.T) { - require.Equal(t, "text", HTMLType.Type) + require.Equal(t, "text", HTMLType.MainType) require.Equal(t, "html", HTMLType.SubType) require.Equal(t, "html", HTMLType.Suffix) - require.Equal(t, "text/html", HTMLType.Key()) + require.Equal(t, "text/html", HTMLType.MainType()) require.Equal(t, "text/html+html", HTMLType.String()) - require.Equal(t, "application", RSSType.Type) + require.Equal(t, "application", RSSType.MainType) require.Equal(t, "rss", RSSType.SubType) require.Equal(t, "xml", RSSType.Suffix) - require.Equal(t, "application/rss", RSSType.Key()) + require.Equal(t, "application/rss", RSSType.MainType()) require.Equal(t, "application/rss+xml", RSSType.String()) } |