Skip to content

Commit d109d4b

Browse files
committed
fix import
1 parent 8adfc74 commit d109d4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Hub, Scope, Session } from '@sentry/hub';
22
import { Event, Span, Transport } from '@sentry/types';
3-
import { logger, SentryError, SyncPromise } from '@sentry/utils';
3+
import { logger, SentryError, SyncPromise, dsnToString } from '@sentry/utils';
44

55
import * as integrationModule from '../../src/integration';
66
import { TestBackend } from '../mocks/backend';
@@ -67,7 +67,7 @@ describe('BaseClient', () => {
6767
test('returns the Dsn', () => {
6868
expect.assertions(1);
6969
const client = new TestClient({ dsn: PUBLIC_DSN });
70-
expect(client.getDsn()!.toString()).toBe(PUBLIC_DSN);
70+
expect(dsnToString(client.getDsn())).toBe(PUBLIC_DSN);
7171
});
7272

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

packages/types/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DsnLike } from './dsn';
1+
import { DsnComponents } from './dsn';
22
import { Event, EventHint } from './event';
33
import { Integration, IntegrationClass } from './integration';
44
import { Options } from './options';
@@ -55,7 +55,7 @@ export interface Client<O extends Options = Options> {
5555
captureSession?(session: Session): void;
5656

5757
/** Returns the current Dsn. */
58-
getDsn(): DsnLike | undefined;
58+
getDsn(): DsnComponents | undefined;
5959

6060
/** Returns the current options. */
6161
getOptions(): O;

0 commit comments

Comments
 (0)