Skip to content

Commit 7420dda

Browse files
committed
Fix NavigationTest
1 parent 2c1c58d commit 7420dda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

common/test/navigation/NavigationTest.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ import test.{ConfiguredTestSuite, WithMaterializer, WithTestContentApiClient, Wi
9696
val maybeNavLink = NavMenu.findDescendantByUrl("/money/work-and-careers", edition, root.children, root.otherLinks)
9797
val parent = maybeNavLink.flatMap(link => NavMenu.findParent(link, edition, root.children, root.otherLinks))
9898
val pillar = NavMenu.getPillar(parent, edition, root.children, root.otherLinks)
99-
100-
parent.map(_ should be(money))
99+
parent.map(_ should be(ukMoney))
101100
pillar.map(_ should be(ukLifestylePillar))
102101
}
103102

@@ -120,7 +119,7 @@ import test.{ConfiguredTestSuite, WithMaterializer, WithTestContentApiClient, Wi
120119
val pillar = NavMenu.getPillar(parent, edition, root.children, root.otherLinks)
121120
val subnav = NavMenu.getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
122121

123-
subnav shouldBe Some(ParentSubnav(money, money.children))
122+
subnav shouldBe Some(ParentSubnav(ukMoney, ukMoney.children))
124123
}
125124

126125
"On `/culture`, the subnav" should "only have children, which are not tertiary" in {

0 commit comments

Comments
 (0)