Skip to content

Commit

Permalink
Update test of branch links
Browse files Browse the repository at this point in the history
  • Loading branch information
qtzar committed Jul 5, 2023
1 parent 613fc6f commit 6c634a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ class BranchHomeLinkViewModelTest : ViewModelTest() {
val viewModel = BranchHomeLinkViewModel(pageViewModel("/master/decisions/1"), "branch-1")

assertThat(viewModel.relativeHref)
.isEqualTo("../../../../branch-1")
.isEqualTo("../../../../branch-1/")
}

@Test
fun `relative href from home`() {
val viewModel = BranchHomeLinkViewModel(pageViewModel("/"), "master")

assertThat(viewModel.relativeHref)
.isEqualTo("./../master")
.isEqualTo("./../master/")
}
}

0 comments on commit 6c634a7

Please sign in to comment.