diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-23 14:37:09 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-23 19:41:22 +0200 |
commit | 6636cf1bea77d20ef2a72a45fae59ac402fb133b (patch) | |
tree | 91c9435acd1a2139f8816abcd9b0d978ff2fa300 /hugolib/page_test.go | |
parent | f669ef6bec25155d015b6ab231c53caef4fa5cdc (diff) |
Resolve error handling/parser related TODOs
See #5324
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r-- | hugolib/page_test.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go index ced7e78d8..4499a97e0 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -767,8 +767,7 @@ Simple Page With Some Date` } // Issue #2601 -// TODO(bep) 2errors -func _TestPageRawContent(t *testing.T) { +func TestPageRawContent(t *testing.T) { t.Parallel() cfg, fs := newTestCfg() @@ -784,7 +783,7 @@ title: Raw require.Len(t, s.RegularPages, 1) p := s.RegularPages[0] - require.Contains(t, p.RawContent(), "**Raw**") + require.Equal(t, p.RawContent(), "**Raw**") } @@ -1042,8 +1041,7 @@ func TestWordCountWithAllCJKRunesWithoutHasCJKLanguage(t *testing.T) { testAllMarkdownEnginesForPages(t, assertFunc, nil, simplePageWithAllCJKRunes) } -// TODO(bep) 2errors -func _TestWordCountWithAllCJKRunesHasCJKLanguage(t *testing.T) { +func TestWordCountWithAllCJKRunesHasCJKLanguage(t *testing.T) { t.Parallel() settings := map[string]interface{}{"hasCJKLanguage": true} @@ -1056,8 +1054,7 @@ func _TestWordCountWithAllCJKRunesHasCJKLanguage(t *testing.T) { testAllMarkdownEnginesForPages(t, assertFunc, settings, simplePageWithAllCJKRunes) } -// TODO(bep) 2errors -func _TestWordCountWithMainEnglishWithCJKRunes(t *testing.T) { +func TestWordCountWithMainEnglishWithCJKRunes(t *testing.T) { t.Parallel() settings := map[string]interface{}{"hasCJKLanguage": true} @@ -1164,7 +1161,6 @@ func TestShouldRenderContent(t *testing.T) { render bool }{ {contentNoFrontmatter, true}, - // TODO(bep) 2errors {invalidFrontmatterShortDelim, true}, {renderNoFrontmatter, false}, {contentWithCommentedFrontmatter, true}, {contentWithCommentedTextFrontmatter, true}, |