diff options
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r-- | hugolib/page_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 8dedf9cab..33588a201 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -1361,23 +1361,6 @@ func TestPagePaths(t *testing.T) { } } -var pageWithDraftAndPublished = `--- -title: broken -published: false -draft: true ---- -some content -` - -func TestDraftAndPublishedFrontMatterError(t *testing.T) { - t.Parallel() - s := newTestSite(t) - _, err := s.NewPageFrom(strings.NewReader(pageWithDraftAndPublished), "content/post/broken.md") - if err != ErrHasDraftAndPublished { - t.Errorf("expected ErrHasDraftAndPublished, was %#v", err) - } -} - var pagesWithPublishedFalse = `--- title: okay published: false |