blob: 10479d863cf1b9d29f2b1fbddc17491330f0e40f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import * as errorTrackingUtils from '~/error_tracking/events_tracking';
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,
});
});
});
});
|