@@ -672,8 +672,8 @@ describe('browserTracingIntegration', () => {
672672 traceId : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) ,
673673 } ) ;
674674
675- expect ( newIsolationScopePropCtx ? .traceId ) . not . toEqual ( oldIsolationScopePropCtx ? .traceId ) ;
676- expect ( newCurrentScopePropCtx ? .traceId ) . not . toEqual ( oldCurrentScopePropCtx ? .traceId ) ;
675+ expect ( newIsolationScopePropCtx . traceId ) . not . toEqual ( oldIsolationScopePropCtx . traceId ) ;
676+ expect ( newCurrentScopePropCtx . traceId ) . not . toEqual ( oldCurrentScopePropCtx . traceId ) ;
677677 } ) ;
678678
679679 it ( "saves the span's positive sampling decision and its DSC on the propagationContext when the span finishes" , ( ) => {
@@ -701,16 +701,16 @@ describe('browserTracingIntegration', () => {
701701
702702 const propCtxAfterEnd = getCurrentScope ( ) . getPropagationContext ( ) ;
703703 expect ( propCtxAfterEnd ) . toStrictEqual ( {
704- spanId : propCtxBeforeEnd ? .spanId ,
705- traceId : propCtxBeforeEnd ? .traceId ,
704+ spanId : propCtxBeforeEnd . spanId ,
705+ traceId : propCtxBeforeEnd . traceId ,
706706 sampled : true ,
707707 dsc : {
708708 environment : 'production' ,
709709 public_key : 'examplePublicKey' ,
710710 sample_rate : '1' ,
711711 sampled : 'true' ,
712712 transaction : 'mySpan' ,
713- trace_id : propCtxBeforeEnd ? .traceId ,
713+ trace_id : propCtxBeforeEnd . traceId ,
714714 } ,
715715 } ) ;
716716 } ) ;
@@ -740,16 +740,16 @@ describe('browserTracingIntegration', () => {
740740
741741 const propCtxAfterEnd = getCurrentScope ( ) . getPropagationContext ( ) ;
742742 expect ( propCtxAfterEnd ) . toStrictEqual ( {
743- spanId : propCtxBeforeEnd ? .spanId ,
744- traceId : propCtxBeforeEnd ? .traceId ,
743+ spanId : propCtxBeforeEnd . spanId ,
744+ traceId : propCtxBeforeEnd . traceId ,
745745 sampled : false ,
746746 dsc : {
747747 environment : 'production' ,
748748 public_key : 'examplePublicKey' ,
749749 sample_rate : '0' ,
750750 sampled : 'false' ,
751751 transaction : 'mySpan' ,
752- trace_id : propCtxBeforeEnd ? .traceId ,
752+ trace_id : propCtxBeforeEnd . traceId ,
753753 } ,
754754 } ) ;
755755 } ) ;
@@ -950,7 +950,7 @@ describe('browserTracingIntegration', () => {
950950 client . emit ( 'idleSpanEnableAutoFinish' , idleSpan ! ) ;
951951
952952 const span = startInactiveSpan ( { name : 'inner1' } ) ;
953- span ? .end ( ) ; // activities = 0
953+ span . end ( ) ; // activities = 0
954954
955955 // inner1 is now ended, all good
956956 expect ( spans ) . toHaveLength ( 1 ) ;
@@ -985,7 +985,7 @@ describe('browserTracingIntegration', () => {
985985 client . emit ( 'idleSpanEnableAutoFinish' , idleSpan ! ) ;
986986
987987 const span = startInactiveSpan ( { name : 'inner1' } ) ;
988- span ? .end ( ) ; // activities = 0
988+ span . end ( ) ; // activities = 0
989989
990990 // inner1 is now ended, all good
991991 expect ( spans ) . toHaveLength ( 1 ) ;
0 commit comments