1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +01:00
unleash.unleash/frontend/src/component/feature/FeatureView/Collaborators.test.tsx

15 lines
463 B
TypeScript
Raw Normal View History

import { render } from '@testing-library/react';
import { Collaborators } from './Collaborators';
test('renders nothing if collaborators is undefined', () => {
const { container } = render(<Collaborators collaborators={undefined} />);
expect(container).toBeEmptyDOMElement();
});
test('renders nothing if users is empty', () => {
const { container } = render(<Collaborators collaborators={[]} />);
expect(container).toBeEmptyDOMElement();
});