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', () => {
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} ) ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments