@@ -80,34 +80,25 @@ describe('React Router server SDK', () => {
80
80
} ) ;
81
81
82
82
describe ( 'filters out low quality transactions' , ( ) => {
83
- it . each ( [
84
- 'GET /node_modules/react/index.js' ,
85
- 'GET /favicon.ico' ,
86
- 'GET /@id/package' ,
87
- ] ) ( '%s' , async ( transaction ) => {
88
- client . captureEvent ( { type : 'transaction' , transaction } ) ;
83
+ it . each ( [ 'GET /node_modules/react/index.js' , 'GET /favicon.ico' , 'GET /@id/package' ] ) (
84
+ '%s' ,
85
+ async transaction => {
86
+ client . captureEvent ( { type : 'transaction' , transaction } ) ;
89
87
90
- await client . flush ( ) ;
88
+ await client . flush ( ) ;
91
89
92
- expect ( beforeSendEvent ) . not . toHaveBeenCalled ( ) ;
93
- } ) ;
90
+ expect ( beforeSendEvent ) . not . toHaveBeenCalled ( ) ;
91
+ } ,
92
+ ) ;
94
93
} ) ;
95
94
96
95
describe ( 'allows high quality transactions' , ( ) => {
97
- it . each ( [
98
- 'GET /' ,
99
- 'GET /users' ,
100
- 'POST /api/data' ,
101
- 'GET /projects/123' ,
102
- ] ) ( '%s' , async ( transaction ) => {
96
+ it . each ( [ 'GET /' , 'GET /users' , 'POST /api/data' , 'GET /projects/123' ] ) ( '%s' , async transaction => {
103
97
client . captureEvent ( { type : 'transaction' , transaction } ) ;
104
98
105
99
await client . flush ( ) ;
106
100
107
- expect ( beforeSendEvent ) . toHaveBeenCalledWith (
108
- expect . objectContaining ( { transaction } ) ,
109
- expect . any ( Object )
110
- ) ;
101
+ expect ( beforeSendEvent ) . toHaveBeenCalledWith ( expect . objectContaining ( { transaction } ) , expect . any ( Object ) ) ;
111
102
} ) ;
112
103
} ) ;
113
104
} ) ;
@@ -118,7 +109,7 @@ describe('React Router server SDK', () => {
118
109
it . each ( [
119
110
[ 'node_modules request' , 'GET /node_modules/react/index.js' ] ,
120
111
[ 'favicon.ico request' , 'GET /favicon.ico' ] ,
121
- [ '@id request' , 'GET /@id/package' ]
112
+ [ '@id request' , 'GET /@id/package' ] ,
122
113
] ) ( '%s' , ( description , transaction ) => {
123
114
const filter = lowQualityTransactionsFilter ( { } ) ;
124
115
const event = {
@@ -134,7 +125,7 @@ describe('React Router server SDK', () => {
134
125
it . each ( [
135
126
[ 'normal page request' , 'GET /users' ] ,
136
127
[ 'API request' , 'POST /api/users' ] ,
137
- [ 'app route' , 'GET /projects/123' ]
128
+ [ 'app route' , 'GET /projects/123' ] ,
138
129
] ) ( '%s' , ( description , transaction ) => {
139
130
const filter = lowQualityTransactionsFilter ( { } ) ;
140
131
const event = {
0 commit comments