accountAuthorizations.spec.tsx 842 B

1234567891011121314151617181920212223242526272829303132
  1. import {LocationFixture} from 'sentry-fixture/locationFixture';
  2. import {RouterFixture} from 'sentry-fixture/routerFixture';
  3. import {render} from 'sentry-test/reactTestingLibrary';
  4. import AccountAuthorizations from 'sentry/views/settings/account/accountAuthorizations';
  5. describe('AccountAuthorizations', function () {
  6. beforeEach(function () {
  7. MockApiClient.clearMockResponses();
  8. });
  9. it('renders empty', function () {
  10. MockApiClient.addMockResponse({
  11. url: '/api-authorizations/',
  12. method: 'GET',
  13. body: [],
  14. });
  15. const router = RouterFixture();
  16. render(
  17. <AccountAuthorizations
  18. location={LocationFixture()}
  19. routeParams={router.params}
  20. params={router.params}
  21. routes={router.routes}
  22. route={router.routes[0]}
  23. router={router}
  24. />
  25. );
  26. });
  27. });