mirror of https://github.com/chillzhuang/Sword
10 lines
285 B
JavaScript
10 lines
285 B
JavaScript
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');
|
|
});
|