organizationAuthList.spec.jsx 725 B

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import OrganizationAuthList from 'app/views/settings/organization/auth/organizationAuthList';
  4. jest.mock('jquery');
  5. describe('OrganizationAuthList', function() {
  6. it('renders with no providers', function() {
  7. let wrapper = shallow(
  8. <OrganizationAuthList providerList={[]} />,
  9. TestStubs.routerContext()
  10. );
  11. expect(wrapper).toMatchSnapshot();
  12. });
  13. it('renders', function() {
  14. let wrapper = shallow(
  15. <OrganizationAuthList
  16. orgId="org-slug"
  17. onSendReminders={() => {}}
  18. providerList={TestStubs.AuthProviders()}
  19. />,
  20. TestStubs.routerContext()
  21. );
  22. expect(wrapper).toMatchSnapshot();
  23. });
  24. });