File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 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';
22
33import { API } from '../../src/api' ;
44
5+ const ingestDsn = 'https://abc@xxxx.ingest.sentry.io:1234/subpath/123' ;
56const dsnPublic = 'https://abc@sentry.io:1234/subpath/123' ;
67const legacyDsn = 'https://abc:123@sentry.io:1234/subpath/123' ;
78
@@ -11,6 +12,7 @@ describe('API', () => {
1112 'https://sentry.io:1234/subpath/api/123/store/?sentry_key=abc&sentry_version=7' ,
1213 ) ;
1314 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/' ) ;
1416 } ) ;
1517
1618 test ( 'getRequestHeaders' , ( ) => {
@@ -28,6 +30,10 @@ describe('API', () => {
2830 } ) ;
2931
3032 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+
3137 expect ( new API ( dsnPublic ) . getReportDialogEndpoint ( { } ) ) . toEqual (
3238 'https://sentry.io:1234/subpath/api/embed/error-page/?dsn=https://abc@sentry.io:1234/subpath/123' ,
3339 ) ;
You can’t perform that action at this time.
0 commit comments