Files
twenty_crm/front/src/components/chips/__tests__/CompanyChip.test.tsx
Charles Bochet b8d089395f Add linter on CI
2023-04-20 11:51:04 +02:00

19 lines
524 B
TypeScript

import { render } from '@testing-library/react';
import {
RegularCompanyChip,
RegularCompanyChipWithImage,
} from '../__stories__/CompanyChip.stories';
it('Checks the CompanyChip renders', () => {
const { getByText } = render(<RegularCompanyChip />);
expect(getByText('selected-company-1')).toBeDefined();
});
it('Checks the CompanyChip img renders', () => {
const { getByTestId } = render(<RegularCompanyChipWithImage />);
expect(getByTestId('company-chip-image')).toHaveAttribute('src', 'coucou.fr');
});