File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { Dsn } from '@sentry/utils';
2
2
3
3
import { API } from '../../src/api' ;
4
4
5
+ const ingestDsn = 'https://abc@xxxx.ingest.sentry.io:1234/subpath/123' ;
5
6
const dsnPublic = 'https://abc@sentry.io:1234/subpath/123' ;
6
7
const legacyDsn = 'https://abc:123@sentry.io:1234/subpath/123' ;
7
8
@@ -11,6 +12,7 @@ describe('API', () => {
11
12
'https://sentry.io:1234/subpath/api/123/store/?sentry_key=abc&sentry_version=7' ,
12
13
) ;
13
14
expect ( new API ( dsnPublic ) . getStoreEndpoint ( ) ) . toEqual ( 'https://sentry.io:1234/subpath/api/123/store/' ) ;
15
+ expect ( new API ( ingestDsn ) . getStoreEndpoint ( ) ) . toEqual ( 'https://xxxx.ingest.sentry.io:1234/subpath/api/123/store/' ) ;
14
16
} ) ;
15
17
16
18
test ( 'getRequestHeaders' , ( ) => {
@@ -28,6 +30,10 @@ describe('API', () => {
28
30
} ) ;
29
31
30
32
test ( 'getReportDialogEndpoint' , ( ) => {
33
+ expect ( new API ( ingestDsn ) . getReportDialogEndpoint ( { } ) ) . toEqual (
34
+ 'https://xxxx.ingest.sentry.io:1234/subpath/api/embed/error-page/?dsn=https://abc@xxxx.ingest.sentry.io:1234/subpath/123' ,
35
+ ) ;
36
+
31
37
expect ( new API ( dsnPublic ) . getReportDialogEndpoint ( { } ) ) . toEqual (
32
38
'https://sentry.io:1234/subpath/api/embed/error-page/?dsn=https://abc@sentry.io:1234/subpath/123' ,
33
39
) ;
You can’t perform that action at this time.
0 commit comments