@@ -1097,19 +1097,7 @@ describe('BaseClient', () => {
1097
1097
const client = new TestClient ( options ) ;
1098
1098
1099
1099
const transaction : Event = {
1100
- contexts : {
1101
- trace : {
1102
- op : 'pageload' ,
1103
- span_id : 'a3df84a60c2e4e76' ,
1104
- trace_id : '86f39e84263a4de99c326acab3bfe3bd' ,
1105
- } ,
1106
- } ,
1107
- environment : 'production' ,
1108
- event_id : '972f45b826a248bba98e990878a177e1' ,
1109
- spans : [ ] ,
1110
- start_timestamp : 1591603196.614865 ,
1111
- timestamp : 1591603196.728485 ,
1112
- transaction : 'initialName' ,
1100
+ transaction : '/dogs/are/great' ,
1113
1101
type : 'transaction' ,
1114
1102
transaction_info : {
1115
1103
source : 'url' ,
@@ -1120,12 +1108,12 @@ describe('BaseClient', () => {
1120
1108
1121
1109
const scope = new Scope ( ) ;
1122
1110
scope . addEventProcessor ( event => {
1123
- event . transaction = 'updatedName ' ;
1111
+ event . transaction = '/adopt/dont/shop ' ;
1124
1112
return event ;
1125
1113
} ) ;
1126
1114
1127
1115
client . captureEvent ( transaction , { } , scope ) ;
1128
- expect ( TestClient . instance ! . event ! . transaction ) . toEqual ( 'updatedName ' ) ;
1116
+ expect ( TestClient . instance ! . event ! . transaction ) . toEqual ( '/adopt/dont/shop ' ) ;
1129
1117
expect ( TestClient . instance ! . event ! . transaction_info ) . toEqual ( {
1130
1118
source : 'custom' ,
1131
1119
changes : [
0 commit comments