File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ describe('BrowserTracing', () => {
177
177
expect ( mockBeforeNavigation ) . toHaveBeenCalledTimes ( 1 ) ;
178
178
} ) ;
179
179
180
- it ( 'creates an unsampled transaction if it returns undefined' , ( ) => {
180
+ it ( 'creates a transaction with sampled = false if it returns undefined' , ( ) => {
181
181
const mockBeforeNavigation = jest . fn ( ) . mockReturnValue ( undefined ) ;
182
182
createBrowserTracing ( true , {
183
183
beforeNavigate : mockBeforeNavigation ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ describe('Hub', () => {
30
30
} ) ;
31
31
32
32
describe ( 'getTransaction()' , ( ) => {
33
- it ( 'should find a sampled transaction which has been set on the scope' , ( ) => {
33
+ it ( 'should find a transaction which has been set on the scope if sampled = true ' , ( ) => {
34
34
const hub = new Hub ( new BrowserClient ( { tracesSampleRate : 1 } ) ) ;
35
35
const transaction = hub . startTransaction ( { name : 'dogpark' } ) ;
36
36
hub . configureScope ( scope => {
@@ -40,7 +40,7 @@ describe('Hub', () => {
40
40
expect ( hub . getScope ( ) ?. getTransaction ( ) ) . toBe ( transaction ) ;
41
41
} ) ;
42
42
43
- it ( 'should find an unsampled transaction which has been set on the scope' , ( ) => {
43
+ it ( 'should find a transaction which has been set on the scope if sampled = false ' , ( ) => {
44
44
const hub = new Hub ( new BrowserClient ( { tracesSampleRate : 1 } ) ) ;
45
45
const transaction = hub . startTransaction ( { name : 'dogpark' , sampled : false } ) ;
46
46
hub . configureScope ( scope => {
You can’t perform that action at this time.
0 commit comments