import React from 'react';
import {shallow} from 'enzyme';
import {Client} from 'app/api';
import OrganizationRepositories from 'app/views/settings/organization/repositories/organizationRepositories';
describe('OrganizationRepositories', function() {
it('renders without providers', function() {
let wrapper = shallow(
);
expect(wrapper).toMatchSnapshot();
});
it('renders with github provider', function() {
let wrapper = shallow(
);
expect(wrapper).toMatchSnapshot();
});
it('renders with a repository', function() {
Client.addMockResponse({
url: '/organizations/org-slug/repos/',
body: [TestStubs.Repository()],
});
let wrapper = shallow(
);
expect(wrapper).toMatchSnapshot();
});
});