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', () => {
178178 expect ( mockBeforeNavigation ) . toHaveBeenCalledTimes ( 1 ) ;
179179 } ) ;
180180
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' , ( ) => {
183182 const mockBeforeNavigation = jest . fn ( ) . mockReturnValue ( undefined ) ;
184183 createBrowserTracing ( true , {
185184 beforeNavigate : mockBeforeNavigation ,
@@ -412,8 +411,7 @@ describe('BrowserTracing', () => {
412411 } ) ;
413412
414413 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' , ( ) => {
417415 // make sampled false here, so we can see that it's being used rather than the tracesSampleRate-dictated one
418416 document . head . innerHTML = `<meta name="sentry-trace" content="12312012123120121231201212312012-1121201211212012-0">` ;
419417
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ describe('Hub', () => {
4444 expect ( hub . getScope ( ) ?. getTransaction ( ) ) . toBe ( transaction ) ;
4545 } ) ;
4646
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' , ( ) => {
4948 const hub = new Hub ( new BrowserClient ( { tracesSampleRate : 1 } ) ) ;
5049 const transaction = hub . startTransaction ( { name : 'dogpark' , sampled : false } ) ;
5150
@@ -384,8 +383,7 @@ describe('Hub', () => {
384383 expect ( extractTraceparentData ( headers [ 'sentry-trace' ] ) ! . parentSampled ) . toBe ( true ) ;
385384 } ) ;
386385
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' , ( ) => {
389387 const hub = new Hub (
390388 new BrowserClient ( {
391389 dsn :
'https://[email protected] /1121' ,
You can’t perform that action at this time.
0 commit comments