diff --git a/frontend/src/component/feature/FeatureView/Collaborators.test.tsx b/frontend/src/component/feature/FeatureView/Collaborators.test.tsx new file mode 100644 index 0000000000..37d8604a16 --- /dev/null +++ b/frontend/src/component/feature/FeatureView/Collaborators.test.tsx @@ -0,0 +1,16 @@ +import { render } from '@testing-library/react'; +import { Collaborators } from './Collaborators'; + +test('renders nothing if collaborators is undefined', () => { + const { container } = render(); + + expect(container).toBeEmptyDOMElement(); +}); + +test('renders nothing if users is empty', () => { + const { container } = render( + , + ); + + expect(container).toBeEmptyDOMElement(); +});