import { render, mockMatchMedia } from '../../test-utils';

import BottomSheet from './BottomSheet';

mockMatchMedia();

describe('BottomSheet', () => {
  it('does not renders when closed', () => {
    const { container } = render(
      <BottomSheet open={false} onClose={jest.fn()}>
        content
      </BottomSheet>,
    );
    expect(container).toBeEmptyDOMElement();
  });
});
