File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import {
15
15
BaggageObj ,
16
16
createBaggage ,
17
17
createEnvelope ,
18
- dsnToString ,
19
18
dropUndefinedKeys ,
19
+ dsnToString ,
20
20
serializeBaggage ,
21
21
} from '@sentry/utils' ;
22
22
Original file line number Diff line number Diff line change 1
- import { createEventEnvelope } from '../../src/envelope' ;
2
1
import { DsnComponents , Event } from '@sentry/types' ;
3
2
3
+ import { createEventEnvelope } from '../../src/envelope' ;
4
+
4
5
const testDsn : DsnComponents = { protocol : 'https' , projectId : 'abc' , host : 'testry.io' } ;
5
6
6
7
describe ( 'createEventEnvelope' , ( ) => {
7
8
describe ( 'baggage header' , ( ) => {
8
- it ( ` doesn't add baggage header if event is not a transaction` , ( ) => {
9
+ it ( " doesn't add baggage header if event is not a transaction" , ( ) => {
9
10
const event : Event = { } ;
10
11
const envelopeHeaders = createEventEnvelope ( event , testDsn ) [ 0 ] ;
11
12
12
13
expect ( envelopeHeaders ) . toBeDefined ( ) ;
13
14
expect ( envelopeHeaders . baggage ) . toBeUndefined ( ) ;
14
15
} ) ;
15
16
16
- it ( ` doesn't add baggage header if no baggage data is available` , ( ) => {
17
+ it ( " doesn't add baggage header if no baggage data is available" , ( ) => {
17
18
const event : Event = {
18
19
type : 'transaction' ,
19
20
} ;
You can’t perform that action at this time.
0 commit comments