blob: d59c5f39126879cd427f49a60c5ff46ce6c4b6f8 (
plain)
1
2
3
4
5
6
7
8
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();
});
});
|