import React from 'react';
import { render } from '@testing-library/react';
import 'jest-styled-components';
import { Grommet } from '../../Grommet';
import { Stack } from '..';
const CONTENTS = [
first
, second
];
describe('Stack', () => {
test('default', () => {
const { container } = render(
{CONTENTS}
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('guidingChild', () => {
const { container } = render(
{CONTENTS}
{CONTENTS}
{CONTENTS}
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('anchor', () => {
const { container } = render(
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('fill', () => {
const { container } = render(
{CONTENTS}
{CONTENTS}
{CONTENTS}
{CONTENTS}
,
);
expect(container.firstChild).toMatchSnapshot();
});
test('interactiveChild', () => {
const { container } = render(
{CONTENTS}
{CONTENTS}
{CONTENTS}
,
);
expect(container.firstChild).toMatchSnapshot();
});
});