@@ -54,7 +54,7 @@ describe('express tracing experimental', () => {
54
54
. ignore ( 'session' , 'sessions' )
55
55
. expect ( {
56
56
transaction : {
57
- transaction : 'GET /' ,
57
+ transaction : 'GET /\\/test\\/regex/ ' ,
58
58
transaction_info : {
59
59
source : 'route' ,
60
60
} ,
@@ -77,13 +77,13 @@ describe('express tracing experimental', () => {
77
77
} ) ;
78
78
79
79
test . each ( [ [ 'array1' ] , [ 'array5' ] ] ) (
80
- 'should set a correct transaction name for routes consisting of arrays of routes' ,
80
+ 'should set a correct transaction name for routes consisting of arrays of routes for %p ' ,
81
81
( ( segment : string , done : ( ) => void ) => {
82
82
createRunner ( __dirname , 'server.js' )
83
83
. ignore ( 'session' , 'sessions' )
84
84
. expect ( {
85
85
transaction : {
86
- transaction : 'GET /' ,
86
+ transaction : 'GET /test/array1,/\\/test\\/array[2-9]/ ' ,
87
87
transaction_info : {
88
88
source : 'route' ,
89
89
} ,
@@ -115,12 +115,12 @@ describe('express tracing experimental', () => {
115
115
[ 'arr55/required/lastParam' ] ,
116
116
[ 'arr/requiredPath/optionalPath/' ] ,
117
117
[ 'arr/requiredPath/optionalPath/lastParam' ] ,
118
- ] ) ( 'should handle more complex regexes in route arrays correctly' , ( ( segment : string , done : ( ) => void ) => {
118
+ ] ) ( 'should handle more complex regexes in route arrays correctly for %p ' , ( ( segment : string , done : ( ) => void ) => {
119
119
createRunner ( __dirname , 'server.js' )
120
120
. ignore ( 'session' , 'sessions' )
121
121
. expect ( {
122
122
transaction : {
123
- transaction : 'GET /' ,
123
+ transaction : 'GET /test/arr/:id,/\\/test\\/arr[0-9]*\\/required(path)?(\\/optionalPath)?\\/(lastParam)?/ ' ,
124
124
transaction_info : {
125
125
source : 'route' ,
126
126
} ,
0 commit comments