File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,12 @@ describe('API', () => {
119
119
} ) ;
120
120
121
121
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 ) ;
123
129
} ) ;
124
130
} ) ;
Original file line number Diff line number Diff line change 1
1
/// <reference types="next" />
2
- /// <reference types="next/types/global" />
3
2
/// <reference types="next/image-types/global" />
4
3
5
4
// NOTE: This file should not be edited
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function makeDsn(from: DsnLike): Dsn {
107
107
108
108
const dsn : Dsn = {
109
109
...components ,
110
- toString : ( withPassword : boolean ) => dsntoString ( dsn , withPassword ) ,
110
+ toString : ( withPassword ? : boolean ) => dsntoString ( dsn , withPassword ) ,
111
111
} ;
112
112
113
113
return dsn ;
You can’t perform that action at this time.
0 commit comments