@@ -216,21 +216,6 @@ const TRANSACTION_EVENT_3: Event = {
216
216
type : 'transaction' ,
217
217
} ;
218
218
219
- const TRANSACTION_EVENT_HEALTH : Event = {
220
- transaction : 'GET /health' ,
221
- type : 'transaction' ,
222
- } ;
223
-
224
- const TRANSACTION_EVENT_HEALTH_2 : Event = {
225
- transaction : 'GET /healthy' ,
226
- type : 'transaction' ,
227
- } ;
228
-
229
- const TRANSACTION_EVENT_HEALTH_3 : Event = {
230
- transaction : 'GET /live' ,
231
- type : 'transaction' ,
232
- } ;
233
-
234
219
describe ( 'InboundFilters' , ( ) => {
235
220
describe ( '_isSentryError' , ( ) => {
236
221
it ( 'should work as expected' , ( ) => {
@@ -408,39 +393,12 @@ describe('InboundFilters', () => {
408
393
const eventProcessor = createInboundFiltersEventProcessor ( ) ;
409
394
expect ( eventProcessor ( SCRIPT_ERROR_EVENT , { } ) ) . toBe ( null ) ;
410
395
expect ( eventProcessor ( TRANSACTION_EVENT , { } ) ) . toBe ( TRANSACTION_EVENT ) ;
411
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH , { } ) ) . toBe ( null ) ;
412
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH_2 , { } ) ) . toBe ( null ) ;
413
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH_3 , { } ) ) . toBe ( null ) ;
414
396
} ) ;
415
397
416
398
it ( 'disable default error filters' , ( ) => {
417
399
const eventProcessor = createInboundFiltersEventProcessor ( { disableErrorDefaults : true } ) ;
418
400
expect ( eventProcessor ( SCRIPT_ERROR_EVENT , { } ) ) . toBe ( SCRIPT_ERROR_EVENT ) ;
419
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH , { } ) ) . toBe ( null ) ;
420
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH_2 , { } ) ) . toBe ( null ) ;
421
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH_3 , { } ) ) . toBe ( null ) ;
422
401
} ) ;
423
-
424
- it ( 'disable default transaction filters' , ( ) => {
425
- const eventProcessor = createInboundFiltersEventProcessor ( { disableTransactionDefaults : true } ) ;
426
- expect ( eventProcessor ( SCRIPT_ERROR_EVENT , { } ) ) . toBe ( null ) ;
427
- expect ( eventProcessor ( TRANSACTION_EVENT , { } ) ) . toBe ( TRANSACTION_EVENT ) ;
428
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH , { } ) ) . toBe ( TRANSACTION_EVENT_HEALTH ) ;
429
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH_2 , { } ) ) . toBe ( TRANSACTION_EVENT_HEALTH_2 ) ;
430
- expect ( eventProcessor ( TRANSACTION_EVENT_HEALTH_3 , { } ) ) . toBe ( TRANSACTION_EVENT_HEALTH_3 ) ;
431
- } ) ;
432
-
433
- it . each ( [ '/delivery' , '/already' , '/healthysnacks' ] ) (
434
- "doesn't filter out transactions that have similar names to health check ones (%s)" ,
435
- transaction => {
436
- const eventProcessor = createInboundFiltersEventProcessor ( ) ;
437
- const evt : Event = {
438
- transaction,
439
- type : 'transaction' ,
440
- } ;
441
- expect ( eventProcessor ( evt , { } ) ) . toBe ( evt ) ;
442
- } ,
443
- ) ;
444
402
} ) ;
445
403
446
404
describe ( 'denyUrls/allowUrls' , ( ) => {
0 commit comments