diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-03-23 17:31:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-03-27 15:43:56 +0200 |
commit | 8bcc08e3b0ddd5762101bb2f061e0be04ecd8d57 (patch) | |
tree | d2550507b4dbb96509e638d1637d297359089edc /media/mediaType_test.go | |
parent | dbb83f925a7cb256b69b158e2caf0d99e3c7c5e6 (diff) | |
download | hugo-8bcc08e3b0ddd5762101bb2f061e0be04ecd8d57.tar.gz hugo-8bcc08e3b0ddd5762101bb2f061e0be04ecd8d57.zip |
media, output: Add Calendar type
Diffstat (limited to 'media/mediaType_test.go')
-rw-r--r-- | media/mediaType_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go index e9de66d0e..40efc4f06 100644 --- a/media/mediaType_test.go +++ b/media/mediaType_test.go @@ -20,6 +20,13 @@ import ( ) func TestDefaultTypes(t *testing.T) { + require.Equal(t, "text", CalendarType.MainType) + require.Equal(t, "calendar", CalendarType.SubType) + require.Equal(t, "ics", CalendarType.Suffix) + + require.Equal(t, "text/calendar+ics", CalendarType.String()) + require.Equal(t, "text/calendar", CalendarType.Type()) + require.Equal(t, "text", HTMLType.MainType) require.Equal(t, "html", HTMLType.SubType) require.Equal(t, "html", HTMLType.Suffix) |