Skip to content

Commit ef459cd

Browse files
committed
fix type errors in core tests
1 parent 96b2b78 commit ef459cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('BaseClient', () => {
6969

7070
const options = { dsn: PUBLIC_DSN };
7171
const client = new TestClient(options, setupTestTransport(options).transport);
72-
expect(dsnToString(client.getDsn())).toBe(PUBLIC_DSN);
72+
expect(dsnToString(client.getDsn()!)).toBe(PUBLIC_DSN);
7373
});
7474

7575
test('allows missing Dsn', () => {

packages/core/test/mocks/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function setupTestTransport(options: TestOptions): { transport: Transport
7979
const transportOptions = options.transportOptions ? options.transportOptions : { dsn: options.dsn };
8080

8181
if (options.transport) {
82-
return { transport: new this._options.transport(transportOptions) };
82+
return { transport: new options.transport(transportOptions) };
8383
}
8484

8585
return noop;

0 commit comments

Comments
 (0)