import React from 'react'; import { render } from '@testing-library/react'; import FlexCol from './FlexCol'; describe('', () => { it('renders without issues', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders with a custom gutter', () => { const customGutter = 12; const { container } = render(A column); expect(container.firstChild).toHaveStyleRule('padding-right', `${customGutter}px`); expect(container.firstChild).toHaveStyleRule('padding-left', `${customGutter}px`); }); it('renders with custom alignment', () => { const customAlignment = 'flex-start'; const { container } = render(A column); expect(container.firstChild).toHaveStyleRule('align-self', customAlignment); }); it('renders with custom columns', () => { const { container } = render( A column , ); expect(container.firstChild).toMatchSnapshot(); }); it('renders hidden at certain breakpoint', () => { const { container } = render(A column); expect(container.firstChild).toMatchSnapshot(); }); it('renders filling the columns at certain breakpoint', () => { const { container } = render(A column); expect(container.firstChild).toMatchSnapshot(); }); });