Skip to content

Commit

Permalink
add release link to version number (#722)
Browse files Browse the repository at this point in the history
* add release link to version number

* fix test

* fix tests
  • Loading branch information
BulotF authored Jan 10, 2024
1 parent a78a494 commit c02a3cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/layout/header/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ function Header() {
</h2>
<h6>
{Dictionary.headerSubtitle}
<span className="pogues-version">{poguesFrontVersion}</span>
<span className="pogues-version">
<a
href={`https://github.com/InseeFr/Pogues/releases/tag/${poguesFrontVersion}`}
target="blank"
>
{poguesFrontVersion}
</a>
</span>
</h6>
</div>
<div className="header-help">
Expand Down
2 changes: 1 addition & 1 deletion src/layout/header/header.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('<Header />', () => {
});

test('should render a link to the help page', () => {
expect(wrapper.find('a').length).toBe(1);
expect(wrapper.find('a').length).toBe(2);
});

test('should render a <UserConnection /> component', () => {
Expand Down

0 comments on commit c02a3cb

Please sign in to comment.