teamSettings.spec.jsx 629 B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import toJson from 'enzyme-to-json';
  4. import TeamSettings from 'app/views/teamSettings';
  5. describe('TeamSettings', function() {
  6. describe('render()', function() {
  7. it('renders', function() {
  8. let team = TestStubs.Team();
  9. let wrapper = shallow(
  10. <TeamSettings
  11. params={{orgId: 'org', teamId: team.slug}}
  12. team={team}
  13. onTeamChange={() => {}}
  14. />,
  15. {
  16. context: {
  17. router: TestStubs.router()
  18. }
  19. }
  20. );
  21. expect(toJson(wrapper)).toMatchSnapshot();
  22. });
  23. });
  24. });