123456789101112131415161718192021222324252627282930313233343536 |
- 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();
- const organization = TestStubs.Organization();
- 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 organization={organization} />,
- {
- context,
- }
- );
- expect(wrapper.container).toSnapshot();
- });
- });
- });
|