Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix(test): fix setTag test
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Oct 19, 2022
1 parent 331e845 commit 096619d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/hubextensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ import profiler from './../build/Release/cpu_profiler';

function makeTransactionMock(): Transaction {
return {
metadata: {},
tags: {},
finish() {
return;
},
setTag(key: string, value: any) {
this.tags[key] = value;
},
setMetadata(metadata: Partial<TransactionMetadata>) {
this.metadata = { ...metadata } as TransactionMetadata;
}
Expand Down
2 changes: 0 additions & 2 deletions src/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ describe('createProfilingEventEnvelope', () => {
undefined
);

// @ts-expect-error header type inference is broken
expect(envelope[0].sdk).toBe(undefined);
});

Expand All @@ -139,7 +138,6 @@ describe('createProfilingEventEnvelope', () => {
'tunnel'
);

// @ts-expect-error header type inference is broken
expect(envelope[0].dsn).toBe('https://[email protected]:9000/path/123');
});

Expand Down

0 comments on commit 096619d

Please sign in to comment.