1234567891011121314151617181920212223242526272829303132333435 |
- import {render} from 'sentry-test/reactTestingLibrary';
- import {Client} from 'sentry/api';
- import OrganizationRepositoriesContainer from 'sentry/views/settings/organizationRepositories';
- describe('OrganizationRepositoriesContainer', function () {
- const context = TestStubs.routerContext();
- beforeEach(function () {
- Client.clearMockResponses();
- });
- describe('without any providers', function () {
- beforeEach(function () {
- Client.addMockResponse({
- url: '/organizations/org-slug/repos/',
- body: [],
- });
- Client.addMockResponse({
- url: '/organizations/org-slug/config/repos/',
- body: {providers: []},
- });
- });
- it('is loading when initially rendering', function () {
- const wrapper = render(
- <OrganizationRepositoriesContainer params={{orgId: 'org-slug'}} />,
- {
- context,
- }
- );
- expect(wrapper.container).toSnapshot();
- });
- });
- });
|