Indicator.spec.tsx 360 B

123456789101112131415
  1. import { mount } from 'enzyme';
  2. import React from 'react';
  3. import Indicator from '../Indicator';
  4. describe('Indicator', () => {
  5. it('matches the snapshot', () => {
  6. const child = 'Child';
  7. const component = mount(
  8. <Indicator title="title" label="label">
  9. {child}
  10. </Indicator>
  11. );
  12. expect(component).toMatchSnapshot();
  13. });
  14. });