mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -477,10 +477,10 @@ func TestTaxonomyNodeMenu(t *testing.T) {
|
||||
&MenuEntry{Name: "Somewhere else", URL: "/somewhereelse"}, false, false},
|
||||
} {
|
||||
|
||||
n, _ := s.newTaxonomyNode(true, this.taxInfo, i)
|
||||
p := s.newTaxonomyPage(this.taxInfo.plural, this.taxInfo.key)
|
||||
|
||||
isMenuCurrent := n.IsMenuCurrent(this.menu, this.menuItem)
|
||||
hasMenuCurrent := n.HasMenuCurrent(this.menu, this.menuItem)
|
||||
isMenuCurrent := p.IsMenuCurrent(this.menu, this.menuItem)
|
||||
hasMenuCurrent := p.HasMenuCurrent(this.menu, this.menuItem)
|
||||
|
||||
if isMenuCurrent != this.isMenuCurrent {
|
||||
t.Errorf("[%d] Wrong result from IsMenuCurrent: %v", i, isMenuCurrent)
|
||||
|
Reference in New Issue
Block a user