@@ -46,7 +46,7 @@ describe('toClientConfig', function () {
4646 const config = parse ( 'pg:///?sslmode=no-verify' )
4747 const clientConfig = toClientConfig ( config )
4848
49- clientConfig . ssl ?. should . deep . equal ( {
49+ expect ( clientConfig . ssl ) . to . deep . equal ( {
5050 rejectUnauthorized : false ,
5151 } )
5252 } )
@@ -55,14 +55,14 @@ describe('toClientConfig', function () {
5555 const config = parse ( 'pg:///?sslmode=verify-ca' )
5656 const clientConfig = toClientConfig ( config )
5757
58- clientConfig . ssl ?. should . deep . equal ( { } )
58+ expect ( clientConfig . ssl ) . to . deep . equal ( { } )
5959 } )
6060
6161 it ( 'converts other sslmode options' , function ( ) {
6262 const config = parse ( 'pg:///?sslmode=verify-ca' )
6363 const clientConfig = toClientConfig ( config )
6464
65- clientConfig . ssl ?. should . deep . equal ( { } )
65+ expect ( clientConfig . ssl ) . to . deep . equal ( { } )
6666 } )
6767
6868 it ( 'converts ssl cert options' , function ( ) {
@@ -77,7 +77,7 @@ describe('toClientConfig', function () {
7777 const config = parse ( connectionString )
7878 const clientConfig = toClientConfig ( config )
7979
80- clientConfig . ssl ?. should . deep . equal ( {
80+ expect ( clientConfig . ssl ) . to . deep . equal ( {
8181 ca : 'example ca\n' ,
8282 cert : 'example cert\n' ,
8383 key : 'example key\n' ,
@@ -106,9 +106,9 @@ describe('toClientConfig', function () {
106106
107107 const clientConfig = toClientConfig ( config )
108108
109- clientConfig . host ?. should . equal ( 'boom' )
110- clientConfig . database ?. should . equal ( 'lala' )
111- clientConfig . ssl ?. should . deep . equal ( { } )
109+ expect ( clientConfig . host ) . to . equal ( 'boom' )
110+ expect ( clientConfig . database ) . to . equal ( 'lala' )
111+ expect ( clientConfig . ssl ) . to . deep . equal ( { } )
112112 } )
113113} )
114114
0 commit comments