File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export const Navbar: React.FC = () => {
9292 </ Link >
9393 ) }
9494 < a
95- href = " https://github.com/conorheffron/booking-sys"
95+ href = { ` https://github.com/conorheffron/booking-sys/releases/tag/v ${ appVersion } ` }
9696 id = "appVersion"
9797 style = { { marginLeft : '1.5em' , textDecoration : 'none' } }
9898 target = "_blank"
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ describe('Navbar', () => {
8282 ( getCurrentUser as jest . Mock ) . mockResolvedValue ( 'test-user' ) ;
8383 renderWithRouter ( < Navbar /> ) ;
8484 const link = screen . getByRole ( 'link' , { name : / V e r s i o n : / } ) ;
85- expect ( link ) . toHaveAttribute ( 'href' , 'https://github.com/conorheffron/booking-sys' ) ;
85+ expect ( link ) . toHaveAttribute ( 'href' , 'https://github.com/conorheffron/booking-sys/releases/tag/v… ' ) ;
8686 expect ( link ) . toHaveAttribute ( 'target' , '_blank' ) ;
8787 expect ( link ) . toHaveAttribute ( 'rel' , expect . stringContaining ( 'noopener' ) ) ;
8888 } ) ;
You can’t perform that action at this time.
0 commit comments