diff --git a/.circleci/config.yml b/.circleci/config.yml index a70d3ac70..328346cf1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,7 +30,7 @@ jobs: # command: npx tasegir dep-check -- --unused --no-dev - run: name: "Code linting" - command: npm run lint -- --quiet + command: npm run lint -- --quiet --fix node-tests: parameters: version: diff --git a/src/components/organisms/Footer.tsx b/src/components/organisms/Footer.tsx index cbd5160f6..3cc63d69a 100644 --- a/src/components/organisms/Footer.tsx +++ b/src/components/organisms/Footer.tsx @@ -68,7 +68,7 @@ const Footer: FC = () => { links: [ { title: `Version ${appVersion}`, - to: `https://github.com/rsksmart/rif-marketplace-ui/releases/tag/v${appVersion}`, + to: `https://github.com/rsksmart/rif-marketplace-ui/releases/tag/${appVersion}`, target: '_blank', isExternal: true, }, diff --git a/src/components/organisms/__tests__/Footer.test.tsx b/src/components/organisms/__tests__/Footer.test.tsx new file mode 100644 index 000000000..ca63327bc --- /dev/null +++ b/src/components/organisms/__tests__/Footer.test.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import { render } from '@testing-library/react' +import { appVersion } from 'config' +import Footer from '../Footer' + +describe('Footer organism', () => { + describe('section Developer: links', () => { + describe('Version', () => { + const versionTitle = `Version ${appVersion}` + const versionLink = `https://github.com/rsksmart/rif-marketplace-ui/releases/tag/${appVersion}` + + test(`should have title ${versionTitle}`, () => { + const { getByText } = render(