accountAuthorizations.spec.jsx 604 B

123456789101112131415161718192021222324
  1. import {render} from 'sentry-test/reactTestingLibrary';
  2. import {Client} from 'sentry/api';
  3. import AccountAuthorizations from 'sentry/views/settings/account/accountAuthorizations';
  4. describe('AccountAuthorizations', function () {
  5. beforeEach(function () {
  6. Client.clearMockResponses();
  7. });
  8. it('renders empty', function () {
  9. Client.addMockResponse({
  10. url: '/api-authorizations/',
  11. method: 'GET',
  12. body: [],
  13. });
  14. const wrapper = render(<AccountAuthorizations />, {
  15. context: TestStubs.routerContext(),
  16. });
  17. expect(wrapper.container).toSnapshot();
  18. });
  19. });