@@ -90,8 +90,6 @@ describe('tracing', () => {
9090
9191 // our span is at index 1 because the transaction itself is at index 0
9292 expect ( spanToJSON ( spans [ 1 ] ) . description ) . toEqual ( 'GET http://dogs.are.great/' ) ;
93- // eslint-disable-next-line deprecation/deprecation
94- expect ( spans [ 1 ] . op ) . toEqual ( 'http.client' ) ;
9593 expect ( spanToJSON ( spans [ 1 ] ) . op ) . toEqual ( 'http.client' ) ;
9694 } ) ;
9795
@@ -301,8 +299,6 @@ describe('tracing', () => {
301299
302300 // our span is at index 1 because the transaction itself is at index 0
303301 expect ( spanToJSON ( spans [ 1 ] ) . description ) . toEqual ( 'GET http://dogs.are.great/spaniel' ) ;
304- // eslint-disable-next-line deprecation/deprecation
305- expect ( spans [ 1 ] . op ) . toEqual ( 'http.client' ) ;
306302 expect ( spanToJSON ( spans [ 1 ] ) . op ) . toEqual ( 'http.client' ) ;
307303
308304 const spanAttributes = spanToJSON ( spans [ 1 ] ) . data || { } ;
@@ -328,8 +324,6 @@ describe('tracing', () => {
328324
329325 // our span is at index 1 because the transaction itself is at index 0
330326 expect ( spanToJSON ( spans [ 1 ] ) . description ) . toEqual ( 'GET http://dogs.are.great/spaniel' ) ;
331- // eslint-disable-next-line deprecation/deprecation
332- expect ( spans [ 1 ] . op ) . toEqual ( 'http.client' ) ;
333327 expect ( spanToJSON ( spans [ 1 ] ) . op ) . toEqual ( 'http.client' ) ;
334328 expect ( spanAttributes [ 'http.method' ] ) . toEqual ( 'GET' ) ;
335329 expect ( spanAttributes . url ) . toEqual ( 'http://dogs.are.great/spaniel' ) ;
@@ -413,8 +407,7 @@ describe('tracing', () => {
413407 const request = http . get ( url ) ;
414408
415409 // There should be no http spans
416- // eslint-disable-next-line deprecation/deprecation
417- const httpSpans = spans . filter ( span => span . op ?. startsWith ( 'http' ) ) ;
410+ const httpSpans = spans . filter ( span => spanToJSON ( span ) . op ?. startsWith ( 'http' ) ) ;
418411 expect ( httpSpans . length ) . toBe ( 0 ) ;
419412
420413 // And headers are not attached without span creation
@@ -523,8 +516,7 @@ describe('tracing', () => {
523516 const request = http . get ( url ) ;
524517
525518 // There should be no http spans
526- // eslint-disable-next-line deprecation/deprecation
527- const httpSpans = spans . filter ( span => span . op ?. startsWith ( 'http' ) ) ;
519+ const httpSpans = spans . filter ( span => spanToJSON ( span ) . op ?. startsWith ( 'http' ) ) ;
528520 expect ( httpSpans . length ) . toBe ( 0 ) ;
529521
530522 // And headers are not attached without span creation
0 commit comments