@@ -47,7 +47,7 @@ describe('createTransport', () => {
4747 expect ( req . body ) . toEqual ( serializeEnvelope ( ERROR_ENVELOPE ) ) ;
4848 return resolvedSyncPromise ( { statusCode : 200 , reason : 'OK' } ) ;
4949 } ) ;
50- const res = await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
50+ const res = await transport . send ( ERROR_ENVELOPE ) ;
5151 expect ( res . status ) . toBe ( 'success' ) ;
5252 expect ( res . reason ) . toBe ( 'OK' ) ;
5353 } ) ;
@@ -59,7 +59,7 @@ describe('createTransport', () => {
5959 return resolvedSyncPromise ( { statusCode : 400 , reason : 'Bad Request' } ) ;
6060 } ) ;
6161 try {
62- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
62+ await transport . send ( ERROR_ENVELOPE ) ;
6363 } catch ( res ) {
6464 expect ( res . status ) . toBe ( 'invalid' ) ;
6565 expect ( res . reason ) . toBe ( 'Bad Request' ) ;
@@ -73,7 +73,7 @@ describe('createTransport', () => {
7373 return resolvedSyncPromise ( { statusCode : 500 } ) ;
7474 } ) ;
7575 try {
76- await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
76+ await transport . send ( TRANSACTION_ENVELOPE ) ;
7777 } catch ( res ) {
7878 expect ( res . status ) . toBe ( 'failed' ) ;
7979 expect ( res . reason ) . toBe ( 'Unknown transport error' ) ;
@@ -135,7 +135,7 @@ describe('createTransport', () => {
135135 } ) ;
136136
137137 try {
138- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
138+ await transport . send ( ERROR_ENVELOPE ) ;
139139 } catch ( res ) {
140140 expect ( res . status ) . toBe ( 'rate_limit' ) ;
141141 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
@@ -144,13 +144,13 @@ describe('createTransport', () => {
144144 setTransportResponse ( { statusCode : 200 } ) ;
145145
146146 try {
147- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
147+ await transport . send ( ERROR_ENVELOPE ) ;
148148 } catch ( res ) {
149149 expect ( res . status ) . toBe ( 'rate_limit' ) ;
150150 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
151151 }
152152
153- const res = await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
153+ const res = await transport . send ( ERROR_ENVELOPE ) ;
154154 expect ( res . status ) . toBe ( 'success' ) ;
155155 } ) ;
156156
@@ -181,7 +181,7 @@ describe('createTransport', () => {
181181 } ) ;
182182
183183 try {
184- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
184+ await transport . send ( ERROR_ENVELOPE ) ;
185185 } catch ( res ) {
186186 expect ( res . status ) . toBe ( 'rate_limit' ) ;
187187 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
@@ -190,20 +190,20 @@ describe('createTransport', () => {
190190 setTransportResponse ( { statusCode : 200 } ) ;
191191
192192 try {
193- await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
193+ await transport . send ( TRANSACTION_ENVELOPE ) ;
194194 } catch ( res ) {
195195 expect ( res . status ) . toBe ( 'rate_limit' ) ;
196196 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
197197 }
198198
199199 try {
200- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
200+ await transport . send ( ERROR_ENVELOPE ) ;
201201 } catch ( res ) {
202202 expect ( res . status ) . toBe ( 'rate_limit' ) ;
203203 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
204204 }
205205
206- const res = await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
206+ const res = await transport . send ( TRANSACTION_ENVELOPE ) ;
207207 expect ( res . status ) . toBe ( 'success' ) ;
208208 } ) ;
209209
@@ -234,21 +234,21 @@ describe('createTransport', () => {
234234 } ) ;
235235
236236 try {
237- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
237+ await transport . send ( ERROR_ENVELOPE ) ;
238238 } catch ( res ) {
239239 expect ( res . status ) . toBe ( 'rate_limit' ) ;
240240 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
241241 }
242242
243243 try {
244- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
244+ await transport . send ( ERROR_ENVELOPE ) ;
245245 } catch ( res ) {
246246 expect ( res . status ) . toBe ( 'rate_limit' ) ;
247247 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
248248 }
249249
250250 try {
251- await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
251+ await transport . send ( TRANSACTION_ENVELOPE ) ;
252252 } catch ( res ) {
253253 expect ( res . status ) . toBe ( 'rate_limit' ) ;
254254 expect ( res . reason ) . toBe (
@@ -258,10 +258,10 @@ describe('createTransport', () => {
258258
259259 setTransportResponse ( { statusCode : 200 } ) ;
260260
261- const eventRes = await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
261+ const eventRes = await transport . send ( ERROR_ENVELOPE ) ;
262262 expect ( eventRes . status ) . toBe ( 'success' ) ;
263263
264- const transactionRes = await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
264+ const transactionRes = await transport . send ( TRANSACTION_ENVELOPE ) ;
265265 expect ( transactionRes . status ) . toBe ( 'success' ) ;
266266 } ) ;
267267
@@ -296,21 +296,21 @@ describe('createTransport', () => {
296296 } ) ;
297297
298298 try {
299- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
299+ await transport . send ( ERROR_ENVELOPE ) ;
300300 } catch ( res ) {
301301 expect ( res . status ) . toBe ( 'rate_limit' ) ;
302302 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
303303 }
304304
305305 try {
306- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
306+ await transport . send ( ERROR_ENVELOPE ) ;
307307 } catch ( res ) {
308308 expect ( res . status ) . toBe ( 'rate_limit' ) ;
309309 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
310310 }
311311
312312 try {
313- await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
313+ await transport . send ( TRANSACTION_ENVELOPE ) ;
314314 } catch ( res ) {
315315 expect ( res . status ) . toBe ( 'rate_limit' ) ;
316316 expect ( res . reason ) . toBe (
@@ -320,10 +320,10 @@ describe('createTransport', () => {
320320
321321 setTransportResponse ( { statusCode : 200 } ) ;
322322
323- const eventRes = await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
323+ const eventRes = await transport . send ( ERROR_ENVELOPE ) ;
324324 expect ( eventRes . status ) . toBe ( 'success' ) ;
325325
326- const transactionRes = await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
326+ const transactionRes = await transport . send ( TRANSACTION_ENVELOPE ) ;
327327 expect ( transactionRes . status ) . toBe ( 'success' ) ;
328328 } ) ;
329329
@@ -352,14 +352,14 @@ describe('createTransport', () => {
352352 } ) ;
353353
354354 try {
355- await transport . send ( ERROR_ENVELOPE , ERROR_TRANSPORT_CATEGORY ) ;
355+ await transport . send ( ERROR_ENVELOPE ) ;
356356 } catch ( res ) {
357357 expect ( res . status ) . toBe ( 'rate_limit' ) ;
358358 expect ( res . reason ) . toBe ( `Too many error requests, backing off until: ${ new Date ( afterLimit ) . toISOString ( ) } ` ) ;
359359 }
360360
361361 try {
362- await transport . send ( TRANSACTION_ENVELOPE , TRANSACTION_TRANSPORT_CATEGORY ) ;
362+ await transport . send ( TRANSACTION_ENVELOPE ) ;
363363 } catch ( res ) {
364364 expect ( res . status ) . toBe ( 'rate_limit' ) ;
365365 expect ( res . reason ) . toBe (
0 commit comments