import React from 'react'
import { render } from '@testing-library/react'
import Carousel from '../index'
describe('Carousel', () => {
it('renders without a title or standfirst', () => {
const { container } = render(
Carousel card
)
expect(container.firstChild).toMatchSnapshot()
})
it('renders with a title but no standfirst', () => {
const { container } = render(
Carousel card
)
expect(container.firstChild).toMatchSnapshot()
})
it('renders with a title and standfirst', () => {
const { container } = render(
Carousel card
)
expect(container.firstChild).toMatchSnapshot()
})
})