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
Thomas Heartman e2b90ae91d
fix: add workaround for tooltip (#7649)
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.
2024-07-24 09:33:29 +00:00

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();
});