mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
30 lines
932 B
TypeScript
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',
|
|
});
|
|
});
|
|
});
|