configStore.spec.tsx 659 B

1234567891011121314151617181920
  1. import ConfigStore from 'sentry/stores/configStore';
  2. describe('ConfigStore', () => {
  3. it('should have apiUrl and organizationUrl', () => {
  4. const links = ConfigStore.get('links');
  5. expect(links).toEqual({
  6. organizationUrl: 'https://foobar.sentry.io',
  7. regionUrl: 'https://us.sentry.io',
  8. sentryUrl: 'https://sentry.io',
  9. });
  10. });
  11. it('should have cookie names', () => {
  12. const csrfCookieName = ConfigStore.get('csrfCookieName');
  13. expect(csrfCookieName).toEqual('csrf-test-cookie');
  14. const superUserCookieName = ConfigStore.get('superUserCookieName');
  15. expect(superUserCookieName).toEqual('su-test-cookie');
  16. });
  17. });