aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Icons/Contact/Contact.tsx
Commit message (Expand)AuthorAgeFilesLines
* chore: replace svg imports with componentsArmand Philippot2021-12-221-0/+54
/a> 9 10 11 12 13 14 15 16 17 18
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { Icon } from '../../../atoms';
import { FlippingLabel } from './flipping-label';

describe('FlippingLabel', () => {
  it('renders a label', () => {
    const label = 'vero quo inventore';
    render(
      <FlippingLabel
        icon={<Icon shape="arrow" />}
        isActive={false}
        label={label}
      />
    );
    expect(rtlScreen.getByText(label)).toBeInTheDocument();
  });
});