accountAuthorizations.spec.tsx 786 B

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