import {mountWithTheme} from 'sentry-test/enzyme';
import {Client} from 'sentry/api';
import OrganizationRepositories from 'sentry/views/settings/organizationRepositories/organizationRepositories';
describe('OrganizationRepositories', function () {
it('renders without providers', function () {
const wrapper = mountWithTheme(
);
expect(wrapper).toSnapshot();
});
it('renders with github provider', function () {
const wrapper = mountWithTheme(
);
expect(wrapper).toSnapshot();
});
it('renders with a repository', function () {
Client.addMockResponse({
url: '/organizations/org-slug/repos/',
body: [TestStubs.Repository()],
});
const wrapper = mountWithTheme(
);
expect(wrapper).toSnapshot();
});
});