import * as React from 'react'; import render from '../../_utils/tests/render'; import Timeline from '../Timeline'; describe('Timeline', () => { it('renders correctly', () => { const { container } = render( Step one Heading Step one details goes here Step two Heading Step two details goes here Step three Heading Step three details goes here ); expect(container.firstChild).toMatchSnapshot(); }); describe('with custom color in step', () => { it('renders correctly', () => { const { container } = render( Step one Heading Step one details goes here Step two Heading Step two details goes here Step three Heading Step three details goes here ); expect(container.firstChild).toMatchSnapshot(); }); }); describe('with activeStep', () => { it('renders correctly', () => { const { container } = render( Step one Heading Step one details goes here Step two Heading Step two details goes here Step three Heading Step three details goes here ); expect(container.firstChild).toMatchSnapshot(); }); }); });