diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-10-13 10:21:28 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-10-13 13:18:23 +0200 |
commit | 6a30874f19610a38e846e120aac03c68e12f9b7b (patch) | |
tree | d2af53e6ca5acba14cf84784af6ec0511d5e3210 /hugolib/site_test.go | |
parent | 15ec031d9818d239bfbff525c00cd99cc3118a96 (diff) | |
download | hugo-6a30874f19610a38e846e120aac03c68e12f9b7b.tar.gz hugo-6a30874f19610a38e846e120aac03c68e12f9b7b.zip |
Make sure Date and PublishDate is always set to a value if one is available
Fixes #3854
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r-- | hugolib/site_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go index d7ca66827..7c5af6671 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -750,15 +750,6 @@ func TestGroupedPages(t *testing.T) { if bydate[1].Key != "2012-01" { t.Errorf("PageGroup array in unexpected order. Second group key should be '%s', got '%s'", "2012-01", bydate[1].Key) } - if bydate[2].Key != "2012-04" { - t.Errorf("PageGroup array in unexpected order. Third group key should be '%s', got '%s'", "2012-04", bydate[2].Key) - } - if bydate[2].Pages[0].Title != "Three" { - t.Errorf("PageGroup has an unexpected page. Third group's pages should have '%s', got '%s'", "Three", bydate[2].Pages[0].Title) - } - if len(bydate[0].Pages) != 2 { - t.Errorf("PageGroup has unexpected number of pages. First group should have '%d' pages, got '%d' pages", 2, len(bydate[2].Pages)) - } bypubdate, err := s.RegularPages.GroupByPublishDate("2006") if err != nil { |