Skip to content

Commit

Permalink
app-project: Fix ProjectStatistics project stats href (#5751)
Browse files Browse the repository at this point in the history
* Refactor test for ProjectStatistics project stats href

* Add /projects to ProjectsStatistics project stats href
  • Loading branch information
mcbouslog authored Dec 6, 2023
1 parent 0c2a43f commit 07ec2ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ProjectStatisticsContainer extends Component {
const owner = router?.query?.owner
const project = router?.query?.project
return {
href: `/${owner}/${project}/stats`
href: `/projects/${owner}/${project}/stats`
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Component > ProjectStatisticsContainer', function () {

it('should pass through a `linkProps` prop', function () {
expect(projectStatisticsWrapper.prop('linkProps')).to.deep.equal({
href: `/foo/bar/stats`
href: `/projects/foo/bar/stats`
})
})

Expand Down

0 comments on commit 07ec2ab

Please sign in to comment.