diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-06-18 13:15:00 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-06-18 13:15:00 +0200 |
commit | ab4e1dfa4eebe0ac18f1d1f60a9647cbb7b41d7f (patch) | |
tree | 0b61c68290e480a6743a6b3df00e30acf9136d9e | |
parent | 02f31897b4f7252154850a65c900e88e0b237fa3 (diff) | |
download | hugo-ab4e1dfa4eebe0ac18f1d1f60a9647cbb7b41d7f.tar.gz hugo-ab4e1dfa4eebe0ac18f1d1f60a9647cbb7b41d7f.zip |
media: Adjust test assertion
Closes #8625
-rw-r--r-- | media/mediaType_test.go | 2 | ||||
-rw-r--r-- | output/outputFormat_test.go | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go index 8d92ed1b2..b33ca174c 100644 --- a/media/mediaType_test.go +++ b/media/mediaType_test.go @@ -56,7 +56,7 @@ func TestDefaultTypes(t *testing.T) { } - c.Assert(len(DefaultTypes), qt.Equals, 27) + c.Assert(len(DefaultTypes), qt.Equals, 28) } func TestGetByType(t *testing.T) { diff --git a/output/outputFormat_test.go b/output/outputFormat_test.go index 806998866..fc45099f3 100644 --- a/output/outputFormat_test.go +++ b/output/outputFormat_test.go @@ -67,6 +67,9 @@ func TestDefaultTypes(t *testing.T) { c.Assert(RSSFormat.IsPlainText, qt.Equals, false) c.Assert(RSSFormat.NoUgly, qt.Equals, true) c.Assert(CalendarFormat.IsHTML, qt.Equals, false) + + c.Assert(len(DefaultFormats), qt.Equals, 10) + } func TestGetFormatByName(t *testing.T) { |