@@ -4,12 +4,17 @@ import type { Client } from '../../../src/client';
4
4
5
5
describe ( 'isSentryRequestUrl' , ( ) => {
6
6
it . each ( [
7
- [ '' , 'sentry-dsn.com' , '' , false ] ,
8
- [ 'http://sentry-dsn.com/my-url' , 'sentry-dsn.com' , '' , true ] ,
9
- [ 'http://sentry-dsn.com' , 'sentry-dsn.com' , '' , true ] ,
7
+ [ 'http://sentry-dsn.com/my-url?sentry_key=123' , 'sentry-dsn.com' , '' , true ] ,
10
8
[ 'http://tunnel:4200' , 'sentry-dsn.com' , 'http://tunnel:4200' , true ] ,
11
9
[ 'http://tunnel:4200' , 'sentry-dsn.com' , 'http://tunnel:4200/' , true ] ,
12
10
[ 'http://tunnel:4200/' , 'sentry-dsn.com' , 'http://tunnel:4200' , true ] ,
11
+ [ 'http://tunnel:4200/' , 'another-dsn.com' , 'http://tunnel:4200' , true ] ,
12
+
13
+ [ 'http://tunnel:4200/?sentry_key=123' , 'another-dsn.com' , '' , false ] ,
14
+ [ 'http://sentry-dsn.com/my-url' , 'sentry-dsn.com' , '' , false ] ,
15
+ [ 'http://sentry-dsn.com' , 'sentry-dsn.com' , '' , false ] ,
16
+ [ 'http://tunnel:4200/' , 'another-dsn.com' , 'http://tunnel:4200/sentry-tunnel' , false ] ,
17
+ [ '' , 'sentry-dsn.com' , '' , false ] ,
13
18
[ 'http://tunnel:4200/a' , 'sentry-dsn.com' , 'http://tunnel:4200' , false ] ,
14
19
] ) ( 'works with url=%s, dsn=%s, tunnel=%s' , ( url : string , dsn : string , tunnel : string , expected : boolean ) => {
15
20
const client = {
0 commit comments