import * as React from 'react';
import render from '../../_utils/tests/render';
import Column from '../Column';
// @ts-ignore
import Columns from '../../Columns';
it('renders correctly for basic columns', () => {
const { container } = render(
Column
Column
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
describe('basic sizes', () => {
it('renders correctly when all columns have sizes', () => {
const { container } = render(
Column
Column
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when there is space still left on the right', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when one of the columns does not have a size', () => {
const { container } = render(
Column
Column
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when the first column does not have a size', () => {
const { container } = render(
Column
Column
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
});
describe('basic offsets', () => {
it('renders correctly for a spread offset of "left"', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly for a spread offset of "right"', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly for a spread offset of "both"', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly for a spread offset of values between 1 and 11', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
});
describe('variable sizes', () => {
it('renders correctly when only spread and spreadDesktop is specified', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when all spreads are specified', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when only mobile spread is specified', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when only tablet spread is specified', () => {
const { container } = render(
Column
Column
);
expect(container.firstChild).toMatchSnapshot();
});
});
describe('variable offsets', () => {
it('renders correctly when only spreadOffset and spreadDesktopOffset is specified', () => {
const { container } = render(
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when all spreadOffsets are specified', () => {
const { container } = render(
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when only mobile spread offset is specified', () => {
const { container } = render(
Column
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly when only tablet spread offset is specified', () => {
const { container } = render(
Column
);
expect(container.firstChild).toMatchSnapshot();
});
});