Skip to content

Commit 93ae271

Browse files
committed
simplify transaction name change test
1 parent 9f5b101 commit 93ae271

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

packages/core/test/lib/base.test.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,19 +1097,7 @@ describe('BaseClient', () => {
10971097
const client = new TestClient(options);
10981098

10991099
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',
11131101
type: 'transaction',
11141102
transaction_info: {
11151103
source: 'url',
@@ -1120,12 +1108,12 @@ describe('BaseClient', () => {
11201108

11211109
const scope = new Scope();
11221110
scope.addEventProcessor(event => {
1123-
event.transaction = 'updatedName';
1111+
event.transaction = '/adopt/dont/shop';
11241112
return event;
11251113
});
11261114

11271115
client.captureEvent(transaction, {}, scope);
1128-
expect(TestClient.instance!.event!.transaction).toEqual('updatedName');
1116+
expect(TestClient.instance!.event!.transaction).toEqual('/adopt/dont/shop');
11291117
expect(TestClient.instance!.event!.transaction_info).toEqual({
11301118
source: 'custom',
11311119
changes: [

0 commit comments

Comments
 (0)