diff options
Diffstat (limited to 'hugolib/menu_test.go')
-rw-r--r-- | hugolib/menu_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go index bd186bd9f..0d5d81d29 100644 --- a/hugolib/menu_test.go +++ b/hugolib/menu_test.go @@ -415,11 +415,11 @@ func doTestSectionPagesMenu(canonifyURLs bool, t *testing.T) { fishySectionPages := s.Sections["fish-and-chips"] assert.Equal(t, 1, len(fishySectionPages)) - nodeFirst := s.getPage(NodeSection, "first") + nodeFirst := s.getPage(PageSection, "first") require.NotNil(t, nodeFirst) - nodeSecond := s.getPage(NodeSection, "second-section") + nodeSecond := s.getPage(PageSection, "second-section") require.NotNil(t, nodeSecond) - nodeFishy := s.getPage(NodeSection, "fish-and-chips") + nodeFishy := s.getPage(PageSection, "fish-and-chips") require.Equal(t, "fish-and-chips", nodeFishy.sections[0]) firstSectionMenuEntry := findTestMenuEntryByID(s, "spm", "first") @@ -555,7 +555,7 @@ func TestHomeNodeMenu(t *testing.T) { s := setupMenuTests(t, menuPageSources) - home := s.getPage(NodeHome) + home := s.getPage(PageHome) homeMenuEntry := &MenuEntry{Name: home.Title, URL: home.URL()} |