summaryrefslogtreecommitdiffstats
path: root/hugolib/menu_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-11 09:19:16 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-22 09:57:03 +0100
commitc80308e6b3f3f4f6879ee6b7301575f162ac9209 (patch)
tree6647f3f6e8053bf20fcd468e1b2d4a3c233b9f02 /hugolib/menu_test.go
parent063b78d2ece39b82d0eb32ac5559097c2780cef8 (diff)
node to page: Add Pages to Page
As an alias to .Data.Pages for home page etc. Also renamte NodeType to PageType and make it a string so it can be used in `where`. 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 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()}