File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ describe('BrowserTracing', () => {
178
178
expect ( mockBeforeNavigation ) . toHaveBeenCalledTimes ( 1 ) ;
179
179
} ) ;
180
180
181
- // TODO add this back in once getTransaction() returns sampled = false transactions, too
182
- it . skip ( 'creates a transaction with sampled = false if it returns undefined' , ( ) => {
181
+ it ( 'creates a transaction with sampled = false if beforeNavigate returns undefined' , ( ) => {
183
182
const mockBeforeNavigation = jest . fn ( ) . mockReturnValue ( undefined ) ;
184
183
createBrowserTracing ( true , {
185
184
beforeNavigate : mockBeforeNavigation ,
@@ -412,8 +411,7 @@ describe('BrowserTracing', () => {
412
411
} ) ;
413
412
414
413
describe ( 'using the data' , ( ) => {
415
- // TODO add this back in once getTransaction() returns sampled = false transactions, too
416
- it . skip ( 'uses the data for pageload transactions' , ( ) => {
414
+ it ( 'uses the data for pageload transactions' , ( ) => {
417
415
// make sampled false here, so we can see that it's being used rather than the tracesSampleRate-dictated one
418
416
document . head . innerHTML = `<meta name="sentry-trace" content="12312012123120121231201212312012-1121201211212012-0">` ;
419
417
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ describe('Hub', () => {
44
44
expect ( hub . getScope ( ) ?. getTransaction ( ) ) . toBe ( transaction ) ;
45
45
} ) ;
46
46
47
- // TODO add this back in once getTransaction() returns sampled = false transactions, too
48
- it . skip ( 'should find a transaction which has been set on the scope if sampled = false' , ( ) => {
47
+ it ( 'should find a transaction which has been set on the scope if sampled = false' , ( ) => {
49
48
const hub = new Hub ( new BrowserClient ( { tracesSampleRate : 1 } ) ) ;
50
49
const transaction = hub . startTransaction ( { name : 'dogpark' , sampled : false } ) ;
51
50
@@ -384,8 +383,7 @@ describe('Hub', () => {
384
383
expect ( extractTraceparentData ( headers [ 'sentry-trace' ] ) ! . parentSampled ) . toBe ( true ) ;
385
384
} ) ;
386
385
387
- // TODO add this back in once getTransaction() returns sampled = false transactions, too
388
- it . skip ( 'should propagate negative sampling decision to child transactions in XHR header' , ( ) => {
386
+ it ( 'should propagate negative sampling decision to child transactions in XHR header' , ( ) => {
389
387
const hub = new Hub (
390
388
new BrowserClient ( {
391
389
dsn :
'https://[email protected] /1121' ,
You can’t perform that action at this time.
0 commit comments