index.spec.jsx 559 B

12345678910111213141516
  1. import {render} from 'sentry-test/reactTestingLibrary';
  2. import AlertsContainer from 'sentry/views/alerts';
  3. describe('AlertsContainer', function () {
  4. describe('no access without feature flag', function () {
  5. it('display no access message', function () {
  6. const organization = TestStubs.Organization({projects: [TestStubs.Project()]});
  7. const {container} = render(<AlertsContainer />, {
  8. context: TestStubs.routerContext([{organization}]),
  9. organization,
  10. });
  11. expect(container).toBeEmptyDOMElement();
  12. });
  13. });
  14. });