2019-12-13 02:51:10 -06:00
|
|
|
import React from 'react';
|
|
|
|
import { shallow } from 'enzyme';
|
|
|
|
import { CreateTeam, Props } from './CreateTeam';
|
2020-01-13 01:03:22 -06:00
|
|
|
import { mockToolkitActionCreator } from 'test/core/redux/mocks';
|
2019-12-13 02:51:10 -06:00
|
|
|
import { updateLocation } from 'app/core/actions';
|
|
|
|
|
|
|
|
describe('Render', () => {
|
|
|
|
it('should render component', () => {
|
|
|
|
const props: Props = {
|
2020-01-13 01:03:22 -06:00
|
|
|
updateLocation: mockToolkitActionCreator(updateLocation),
|
2019-12-13 02:51:10 -06:00
|
|
|
navModel: {} as any,
|
|
|
|
};
|
|
|
|
const wrapper = shallow(<CreateTeam {...props} />);
|
|
|
|
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|