diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-25 19:36:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | 09c88e84d196e6c0943b220cd6526d3473c530b6 (patch) | |
tree | 6bc3c0e7abe4c1d8d47b02a72e6dc855a2ad5d45 /hugolib/site_output_test.go | |
parent | 24c1770288803bd7a344f5903dd4f03cccc6a8f0 (diff) |
output: Rename HTMLType etc. to HTMLFormat
Diffstat (limited to 'hugolib/site_output_test.go')
-rw-r--r-- | hugolib/site_output_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hugolib/site_output_test.go b/hugolib/site_output_test.go index 006f3bad0..86e1a55ca 100644 --- a/hugolib/site_output_test.go +++ b/hugolib/site_output_test.go @@ -38,8 +38,8 @@ func TestDefaultOutputFormats(t *testing.T) { kind string want output.Formats }{ - {"RSS not for regular pages", KindPage, output.Formats{output.HTMLType}}, - {"Home Sweet Home", KindHome, output.Formats{output.HTMLType, output.RSSType}}, + {"RSS not for regular pages", KindPage, output.Formats{output.HTMLFormat}}, + {"Home Sweet Home", KindHome, output.Formats{output.HTMLFormat, output.RSSFormat}}, } for _, tt := range tests { @@ -59,7 +59,6 @@ func TestSiteWithPageOutputs(t *testing.T) { } } -// TODO(bep) output add test for site outputs config func doTestSiteWithPageOutputs(t *testing.T, outputs []string) { t.Parallel() @@ -147,7 +146,6 @@ Output/Rel: {{ .Name -}}/{{ .Rel }}| require.Equal(t, "http://example.com/blog/index.json", json.Permalink()) if helpers.InStringArray(outputs, "cal") { - // TODO(bep) output have do some protocil handling for the default too if set. cal := of.Get("calendar") require.NotNil(t, cal) require.Equal(t, "/blog/index.ics", cal.RelPermalink()) |