1
- import { getTracingMetaTags } from '../../../src/utils/meta' ;
1
+ import { getTraceMetaTags } from '../../../src/utils/meta' ;
2
2
import * as TraceDataModule from '../../../src/utils/traceData' ;
3
3
4
- describe ( 'getTracingMetaTags ' , ( ) => {
4
+ describe ( 'getTraceMetaTags ' , ( ) => {
5
5
it ( 'renders baggage and sentry-trace values to stringified Html meta tags' , ( ) => {
6
6
jest . spyOn ( TraceDataModule , 'getTraceData' ) . mockReturnValueOnce ( {
7
7
'sentry-trace' : '12345678901234567890123456789012-1234567890123456-1' ,
8
8
baggage : 'sentry-environment=production' ,
9
9
} ) ;
10
10
11
- expect ( getTracingMetaTags ( ) ) . toBe ( `<meta name="sentry-trace" content="12345678901234567890123456789012-1234567890123456-1"/>
11
+ expect ( getTraceMetaTags ( ) ) . toBe ( `<meta name="sentry-trace" content="12345678901234567890123456789012-1234567890123456-1"/>
12
12
<meta name="baggage" content="sentry-environment=production"/>` ) ;
13
13
} ) ;
14
14
@@ -17,14 +17,14 @@ describe('getTracingMetaTags', () => {
17
17
'sentry-trace' : '12345678901234567890123456789012-1234567890123456-1' ,
18
18
} ) ;
19
19
20
- expect ( getTracingMetaTags ( ) ) . toBe (
20
+ expect ( getTraceMetaTags ( ) ) . toBe (
21
21
'<meta name="sentry-trace" content="12345678901234567890123456789012-1234567890123456-1"/>' ,
22
22
) ;
23
23
} ) ;
24
24
25
25
it ( 'returns an empty string if neither sentry-trace nor baggage values are available' , ( ) => {
26
26
jest . spyOn ( TraceDataModule , 'getTraceData' ) . mockReturnValueOnce ( { } ) ;
27
27
28
- expect ( getTracingMetaTags ( ) ) . toBe ( '' ) ;
28
+ expect ( getTraceMetaTags ( ) ) . toBe ( '' ) ;
29
29
} ) ;
30
30
} ) ;
0 commit comments