Success.test.js 285 Bytes
Newer Older
偏右's avatar
偏右 committed
1 2 3 4 5 6 7 8 9
import React from 'react';
import { shallow } from 'enzyme';
import Success from './Success';

it('renders with Result', () => {
  const wrapper = shallow(<Success />);
  expect(wrapper.find('Result').length).toBe(1);
  expect(wrapper.find('Result').prop('type')).toBe('success');
});