Files
2024-02-15 17:01:50 +00:00

30 lines
932 B
TypeScript

import ConfigStore from 'sentry/stores/configStore';
describe('ConfigStore', () => {
it('should have apiUrl and organizationUrl', () => {
const links = ConfigStore.get('links');
expect(links).toEqual({
organizationUrl: 'https://foobar.sentry.io',
regionUrl: 'https://us.sentry.io',
sentryUrl: 'https://sentry.io',
});
});
it('should have cookie names', () => {
const csrfCookieName = ConfigStore.get('csrfCookieName');
expect(csrfCookieName).toEqual('csrf-test-cookie');
const superUserCookieName = ConfigStore.get('superUserCookieName');
expect(superUserCookieName).toEqual('su-test-cookie');
});
it('should have customerDomain', () => {
const customerDomain = ConfigStore.get('customerDomain');
expect(customerDomain).toEqual({
subdomain: 'foobar',
organizationUrl: 'https://foobar.sentry.io',
sentryUrl: 'https://sentry.io',
});
});
});