import React from 'react'
import { render } from '@testing-library/react'
import { ContentLayout } from '../index'
describe('ContentLayout', () => {
it('renders with full-grid layout', () => {
const { container } = render(
Test content
)
expect(container).toMatchSnapshot()
})
it('renders with any accepted layout', () => {
const { container } = render(
Inline content
)
expect(container).toMatchSnapshot()
})
it('renders with multiple children', () => {
const { container } = render(
Title
Paragraph content
Additional content
)
expect(container).toMatchSnapshot()
})
it('renders treating no dataLayout as default inline)', () => {
const { container } = render(
Empty layout content
)
expect(container).toMatchSnapshot()
})
it('renders with inset-left layout', () => {
const { container } = render(
Inset left content
)
expect(container).toMatchSnapshot()
})
})