The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
test: rename test and remove useless nav wrapper
Sammy Teillet97457f54cb57
diff --git a/front/src/components/chips/__stories__/CompanyChip.tsx b/front/src/components/chips/__stories__/CompanyChip.tsxindex b98fc234ca2..fc4413161d0 100644--- a/front/src/components/chips/__stories__/CompanyChip.tsx+++ b/front/src/components/chips/__stories__/CompanyChip.tsx@@ -1,5 +1,3 @@-import { MemoryRouter } from 'react-router-dom';-import CompanyChip from '../CompanyChip';import { ThemeProvider } from '@emotion/react';import { lightTheme } from '../../../layout/styles/themes';@@ -12,9 +10,7 @@ export default {export const RegularCompanyChip = () => {return (<ThemeProvider theme={lightTheme}>- <MemoryRouter initialEntries={['/companies']}>- <CompanyChip name="selected-company-1" />- </MemoryRouter>+ <CompanyChip name="selected-company-1" /></ThemeProvider>);};@@ -22,9 +18,7 @@ export const RegularCompanyChip = () => {export const RegularCompanyChipWithImage = () => {return (<ThemeProvider theme={lightTheme}>- <MemoryRouter initialEntries={['/companies']}>- <CompanyChip name="selected-company-1" picture="coucou.fr" />- </MemoryRouter>+ <CompanyChip name="selected-company-1" picture="coucou.fr" /></ThemeProvider>);};diff --git a/front/src/components/chips/__tests__/CompanyChip.test.tsx b/front/src/components/chips/__tests__/CompanyChip.test.tsxindex ed4e5789333..8cea157f5de 100644--- a/front/src/components/chips/__tests__/CompanyChip.test.tsx+++ b/front/src/components/chips/__tests__/CompanyChip.test.tsx@@ -5,13 +5,13 @@ import {RegularCompanyChipWithImage,} from '../__stories__/CompanyChip';-it('Checks the NavItem renders', () => {+it('Checks the CompanyChip renders', () => {const { getByText } = render(<RegularCompanyChip />);expect(getByText('selected-company-1')).toBeDefined();});-it('Checks the img renders', () => {+it('Checks the CompanyChip img renders', () => {const { getByTestId } = render(<RegularCompanyChipWithImage />);expect(getByTestId('company-chip-image')).toHaveAttribute('src', 'coucou.fr');