Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Dec 20, 2021
1 parent 8adfc74 commit d109d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/test/lib/base.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Hub, Scope, Session } from '@sentry/hub';
import { Event, Span, Transport } from '@sentry/types';
import { logger, SentryError, SyncPromise } from '@sentry/utils';
import { logger, SentryError, SyncPromise, dsnToString } from '@sentry/utils';

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

test('allows missing Dsn', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DsnLike } from './dsn';
import { DsnComponents } from './dsn';
import { Event, EventHint } from './event';
import { Integration, IntegrationClass } from './integration';
import { Options } from './options';
Expand Down Expand Up @@ -55,7 +55,7 @@ export interface Client<O extends Options = Options> {
captureSession?(session: Session): void;

/** Returns the current Dsn. */
getDsn(): DsnLike | undefined;
getDsn(): DsnComponents | undefined;

/** Returns the current options. */
getOptions(): O;
Expand Down

0 comments on commit d109d4b

Please sign in to comment.