diff options
Diffstat (limited to 'output')
-rw-r--r-- | output/outputFormat.go | 9 | ||||
-rw-r--r-- | output/outputFormat_test.go | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/output/outputFormat.go b/output/outputFormat.go index 3812030d1..efc0cd85f 100644 --- a/output/outputFormat.go +++ b/output/outputFormat.go @@ -31,6 +31,15 @@ var ( Rel: "amphtml", } + CalendarType = Format{ + Name: "Calendar", + MediaType: media.CalendarType, + IsPlainText: true, + Protocol: "webcal://", + BaseName: "index", + Rel: "alternate", + } + CSSType = Format{ Name: "CSS", MediaType: media.CSSType, diff --git a/output/outputFormat_test.go b/output/outputFormat_test.go index 21375bf56..efc31a223 100644 --- a/output/outputFormat_test.go +++ b/output/outputFormat_test.go @@ -21,6 +21,12 @@ import ( ) func TestDefaultTypes(t *testing.T) { + require.Equal(t, "Calendar", CalendarType.Name) + require.Equal(t, media.CalendarType, CalendarType.MediaType) + require.Equal(t, "webcal://", CalendarType.Protocol) + require.Empty(t, CalendarType.Path) + require.True(t, CalendarType.IsPlainText) + require.Equal(t, "HTML", HTMLType.Name) require.Equal(t, media.HTMLType, HTMLType.MediaType) require.Empty(t, HTMLType.Path) |