mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
29 lines
879 B
TypeScript
29 lines
879 B
TypeScript
import {initializeOrg} from 'sentry-test/initializeOrg';
|
|
import {render} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import OrganizationRepositoriesContainer from 'sentry/views/settings/organizationRepositories';
|
|
|
|
describe('OrganizationRepositoriesContainer', function () {
|
|
const {routerContext} = initializeOrg();
|
|
beforeEach(function () {
|
|
MockApiClient.clearMockResponses();
|
|
});
|
|
|
|
describe('without any providers', function () {
|
|
beforeEach(function () {
|
|
MockApiClient.addMockResponse({
|
|
url: '/organizations/org-slug/repos/',
|
|
body: [],
|
|
});
|
|
MockApiClient.addMockResponse({
|
|
url: '/organizations/org-slug/config/repos/',
|
|
body: {providers: []},
|
|
});
|
|
});
|
|
|
|
it('is loading when initially rendering', function () {
|
|
render(<OrganizationRepositoriesContainer />, {context: routerContext});
|
|
});
|
|
});
|
|
});
|