import React from 'react'
import { render } from '@testing-library/react'
import Timeline from '../'

describe('Timeline component', () => {
  it('renders with full-width layout and children', () => {
    const { container } = render(
      <Timeline content={{ type: 'timeline', title: 'Project Timeline' }}>
        <div>Event 1</div>
        <div>Event 2</div>
      </Timeline>
    )
    expect(container).toMatchSnapshot()
  })
})
