Skip to content

Commit 7c08191

Browse files
committed
fix tests
1 parent 76469f0 commit 7c08191

File tree

1 file changed

+5
-5
lines changed
  • dev-packages/node-integration-tests/suites/express/tracing

1 file changed

+5
-5
lines changed

dev-packages/node-integration-tests/suites/express/tracing/test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('express tracing experimental', () => {
5454
.ignore('session', 'sessions')
5555
.expect({
5656
transaction: {
57-
transaction: 'GET /',
57+
transaction: 'GET /\\/test\\/regex/',
5858
transaction_info: {
5959
source: 'route',
6060
},
@@ -77,13 +77,13 @@ describe('express tracing experimental', () => {
7777
});
7878

7979
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',
8181
((segment: string, done: () => void) => {
8282
createRunner(__dirname, 'server.js')
8383
.ignore('session', 'sessions')
8484
.expect({
8585
transaction: {
86-
transaction: 'GET /',
86+
transaction: 'GET /test/array1,/\\/test\\/array[2-9]/',
8787
transaction_info: {
8888
source: 'route',
8989
},
@@ -115,12 +115,12 @@ describe('express tracing experimental', () => {
115115
['arr55/required/lastParam'],
116116
['arr/requiredPath/optionalPath/'],
117117
['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) => {
119119
createRunner(__dirname, 'server.js')
120120
.ignore('session', 'sessions')
121121
.expect({
122122
transaction: {
123-
transaction: 'GET /',
123+
transaction: 'GET /test/arr/:id,/\\/test\\/arr[0-9]*\\/required(path)?(\\/optionalPath)?\\/(lastParam)?/',
124124
transaction_info: {
125125
source: 'route',
126126
},

0 commit comments

Comments
 (0)