123456789101112131415161718192021222324252627282930313233 |
- import PropTypes from 'prop-types';
- import React from 'react';
- import {Client} from 'app/api';
- import {shallow} from 'sentry-test/enzyme';
- import AccountAuthorizations from 'app/views/settings/account/accountAuthorizations';
- describe('AccountAuthorizations', function() {
- beforeEach(function() {
- Client.clearMockResponses();
- });
- it('renders empty', function() {
- Client.addMockResponse({
- url: '/api-authorizations/',
- method: 'GET',
- body: [],
- });
- const wrapper = shallow(<AccountAuthorizations />, {
- context: {
- location: TestStubs.location(),
- router: TestStubs.router(),
- },
- childContextTypes: {
- location: PropTypes.object,
- router: PropTypes.object,
- },
- });
- expect(wrapper).toMatchSnapshot();
- });
- });
|