mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-09 00:18:26 +01:00
This PR adds the UI part of feature flag collaborators. Collaborators are hidden on windows smaller than size XL because we're not sure how to deal with them in those cases yet.
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();
|
|
});
|