mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-09 00:18:26 +01:00
15 lines
463 B
TypeScript
15 lines
463 B
TypeScript
|
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();
|
||
|
});
|