mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
31 lines
737 B
TypeScript
31 lines
737 B
TypeScript
import {render} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import AdminQuotas from 'sentry/views/admin/adminQuotas';
|
|
|
|
// TODO(dcramer): this doesnt really test anything as we need to
|
|
// mock the API Response/wait on it
|
|
describe('AdminQuotas', function () {
|
|
describe('render()', function () {
|
|
beforeEach(() => {
|
|
MockApiClient.addMockResponse({
|
|
url: '/internal/quotas/',
|
|
body: {
|
|
options: {
|
|
'system.rate-limit': 0,
|
|
},
|
|
backend: 'sentry.quotas.redis.RedisQuota',
|
|
},
|
|
});
|
|
});
|
|
|
|
it('renders', function () {
|
|
MockApiClient.addMockResponse({
|
|
url: '/internal/stats/',
|
|
body: [],
|
|
});
|
|
|
|
render(<AdminQuotas />);
|
|
});
|
|
});
|
|
});
|