index.spec.tsx 753 B

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