Skip to content

Commit 5289243

Browse files
committed
fix(dsn): update test
1 parent 4c4bca8 commit 5289243

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/core/test/lib/api.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ describe('API', () => {
119119
});
120120

121121
test('getDsn', () => {
122-
expect(new API(dsnPublic).getDsn()).toEqual(makeDsn(dsnPublic));
122+
expect(new API(dsnPublic).getDsn().host).toEqual(makeDsn(dsnPublic).host);
123+
expect(new API(dsnPublic).getDsn().path).toEqual(makeDsn(dsnPublic).path);
124+
expect(new API(dsnPublic).getDsn().pass).toEqual(makeDsn(dsnPublic).pass);
125+
expect(new API(dsnPublic).getDsn().port).toEqual(makeDsn(dsnPublic).port);
126+
expect(new API(dsnPublic).getDsn().protocol).toEqual(makeDsn(dsnPublic).protocol);
127+
expect(new API(dsnPublic).getDsn().projectId).toEqual(makeDsn(dsnPublic).projectId);
128+
expect(new API(dsnPublic).getDsn().publicKey).toEqual(makeDsn(dsnPublic).publicKey);
123129
});
124130
});

packages/nextjs/test/integration/next-env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

packages/utils/src/dsn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function makeDsn(from: DsnLike): Dsn {
107107

108108
const dsn: Dsn = {
109109
...components,
110-
toString: (withPassword: boolean) => dsntoString(dsn, withPassword),
110+
toString: (withPassword?: boolean) => dsntoString(dsn, withPassword),
111111
};
112112

113113
return dsn;

0 commit comments

Comments
 (0)