11/* eslint-disable @typescript-eslint/unbound-method */ 
22import  {  BrowserClient  }  from  '@sentry/browser' ; 
33import  {  Hub ,  makeMain  }  from  '@sentry/hub' ; 
4- import  {  TransactionSamplingMethod  }  from  '@sentry/types' ; 
54import  *  as  utilsModule  from  '@sentry/utils' ;  // for mocking 
65import  {  logger  }  from  '@sentry/utils' ; 
76
@@ -221,7 +220,7 @@ describe('Hub', () => {
221220        hub . startTransaction ( {  name : 'dogpark' ,  sampled : true  } ) ; 
222221
223222        expect ( Transaction . prototype . setMetadata ) . toHaveBeenCalledWith ( { 
224-           transactionSampling : {  method : TransactionSamplingMethod . Explicit  } , 
223+           transactionSampling : {  method : 'explicitly_set'  } , 
225224        } ) ; 
226225      } ) ; 
227226
@@ -232,7 +231,7 @@ describe('Hub', () => {
232231        hub . startTransaction ( {  name : 'dogpark'  } ) ; 
233232
234233        expect ( Transaction . prototype . setMetadata ) . toHaveBeenCalledWith ( { 
235-           transactionSampling : {  method : TransactionSamplingMethod . Sampler ,  rate : 0.1121  } , 
234+           transactionSampling : {  method : 'client_sampler' ,  rate : 0.1121  } , 
236235        } ) ; 
237236      } ) ; 
238237
@@ -242,7 +241,7 @@ describe('Hub', () => {
242241        hub . startTransaction ( {  name : 'dogpark' ,  parentSampled : true  } ) ; 
243242
244243        expect ( Transaction . prototype . setMetadata ) . toHaveBeenCalledWith ( { 
245-           transactionSampling : {  method : TransactionSamplingMethod . Inheritance  } , 
244+           transactionSampling : {  method : 'inheritance'  } , 
246245        } ) ; 
247246      } ) ; 
248247
@@ -252,7 +251,7 @@ describe('Hub', () => {
252251        hub . startTransaction ( {  name : 'dogpark'  } ) ; 
253252
254253        expect ( Transaction . prototype . setMetadata ) . toHaveBeenCalledWith ( { 
255-           transactionSampling : {  method : TransactionSamplingMethod . Rate ,  rate : 0.1121  } , 
254+           transactionSampling : {  method : 'client_rate' ,  rate : 0.1121  } , 
256255        } ) ; 
257256      } ) ; 
258257    } ) ; 
0 commit comments