summaryrefslogtreecommitdiffstats
path: root/hugolib/menu_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-13 11:43:23 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-22 09:57:03 +0100
commit9fba2a30a9ab5e17a699920079b3ca192686afd4 (patch)
tree52ff114ed1fb5fba980d8e229fe40db109f4dcef /hugolib/menu_test.go
parent96f71141bd4b9e0264bce725f6fec0555c46b1c3 (diff)
node to page: Rename PageType to Kind
And embed that on Page. Updates #2297
Diffstat (limited to 'hugolib/menu_test.go')
-rw-r--r--hugolib/menu_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go
index 0d5d81d29..447273f0b 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(PageSection, "first")
+ nodeFirst := s.getPage(KindSection, "first")
require.NotNil(t, nodeFirst)
- nodeSecond := s.getPage(PageSection, "second-section")
+ nodeSecond := s.getPage(KindSection, "second-section")
require.NotNil(t, nodeSecond)
- nodeFishy := s.getPage(PageSection, "fish-and-chips")
+ nodeFishy := s.getPage(KindSection, "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(PageHome)
+ home := s.getPage(KindHome)
homeMenuEntry := &MenuEntry{Name: home.Title, URL: home.URL()}