2023-07-09 08:55:56 +05:30
|
|
|
import * as errorTrackingUtils from '~/error_tracking/events_tracking';
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
const externalUrl = 'https://sentry.io/organizations/test-sentry-nk/issues/1/?project=1';
|
|
|
|
|
|
|
|
describe('Error Tracking Events', () => {
|
|
|
|
describe('trackClickErrorLinkToSentryOptions', () => {
|
|
|
|
it('should return correct event options', () => {
|
|
|
|
expect(errorTrackingUtils.trackClickErrorLinkToSentryOptions(externalUrl)).toEqual({
|
|
|
|
category: 'Error Tracking',
|
|
|
|
action: 'click_error_link_to_sentry',
|
|
|
|
label: 'Error Link',
|
|
|
|
property: externalUrl,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|