@@ -216,21 +216,6 @@ const TRANSACTION_EVENT_3: Event = {
216216 type : 'transaction' ,
217217} ;
218218
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-
234219describe ( 'InboundFilters' , ( ) => {
235220 describe ( '_isSentryError' , ( ) => {
236221 it ( 'should work as expected' , ( ) => {
@@ -408,39 +393,12 @@ describe('InboundFilters', () => {
408393 const eventProcessor = createInboundFiltersEventProcessor ( ) ;
409394 expect ( eventProcessor ( SCRIPT_ERROR_EVENT , { } ) ) . toBe ( null ) ;
410395 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 ) ;
414396 } ) ;
415397
416398 it ( 'disable default error filters' , ( ) => {
417399 const eventProcessor = createInboundFiltersEventProcessor ( { disableErrorDefaults : true } ) ;
418400 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 ) ;
422401 } ) ;
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- ) ;
444402 } ) ;
445403
446404 describe ( 'denyUrls/allowUrls' , ( ) => {
0 commit comments