index.spec.tsx 879 B

12345678910111213141516171819202122232425262728
  1. import {initializeOrg} from 'sentry-test/initializeOrg';
  2. import {render} from 'sentry-test/reactTestingLibrary';
  3. import OrganizationRepositoriesContainer from 'sentry/views/settings/organizationRepositories';
  4. describe('OrganizationRepositoriesContainer', function () {
  5. const {routerContext} = initializeOrg();
  6. beforeEach(function () {
  7. MockApiClient.clearMockResponses();
  8. });
  9. describe('without any providers', function () {
  10. beforeEach(function () {
  11. MockApiClient.addMockResponse({
  12. url: '/organizations/org-slug/repos/',
  13. body: [],
  14. });
  15. MockApiClient.addMockResponse({
  16. url: '/organizations/org-slug/config/repos/',
  17. body: {providers: []},
  18. });
  19. });
  20. it('is loading when initially rendering', function () {
  21. render(<OrganizationRepositoriesContainer />, {context: routerContext});
  22. });
  23. });
  24. });