mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
16 lines
690 B
TypeScript
16 lines
690 B
TypeScript
import {OrganizationFixture} from 'sentry-fixture/organization';
|
|
|
|
import {getDiscoverLandingUrl} from 'sentry/utils/discover/urls';
|
|
|
|
describe('getDiscoverLandingUrl', function () {
|
|
it('is correct for with discover-query and discover-basic features', function () {
|
|
const org = OrganizationFixture({features: ['discover-query', 'discover-basic']});
|
|
expect(getDiscoverLandingUrl(org)).toBe('/organizations/org-slug/discover/homepage/');
|
|
});
|
|
|
|
it('is correct for with only discover-basic feature', function () {
|
|
const org = OrganizationFixture({features: ['discover-basic']});
|
|
expect(getDiscoverLandingUrl(org)).toBe('/organizations/org-slug/discover/results/');
|
|
});
|
|
});
|