@@ -77,19 +77,17 @@ describe('TLS Support', function () {
77
77
78
78
it ( 'sets the default options' , async function ( ) {
79
79
await client . connect ( ) ;
80
- expect ( tlsSpy ) . to . have . been . calledWith ( {
81
- autoSelectFamily : true ,
82
- host : 'localhost' ,
83
- port : 27017 ,
84
- servername : 'localhost' ,
85
- ca : sinon . match . defined ,
86
- cert : sinon . match . defined ,
87
- key : sinon . match . defined
88
- } ) ;
80
+ expect ( tlsSpy ) . to . have . been . calledWith (
81
+ sinon . match ( {
82
+ ca : sinon . match . defined ,
83
+ cert : sinon . match . defined ,
84
+ key : sinon . match . defined
85
+ } )
86
+ ) ;
89
87
} ) ;
90
88
} ) ;
91
89
92
- context ( 'when auto family options are set' , function ( ) {
90
+ context ( 'when auto select family options are set' , function ( ) {
93
91
let tlsSpy ;
94
92
95
93
afterEach ( function ( ) {
@@ -107,16 +105,15 @@ describe('TLS Support', function () {
107
105
108
106
it ( 'sets the provided options' , async function ( ) {
109
107
await client . connect ( ) ;
110
- expect ( tlsSpy ) . to . have . been . calledWith ( {
111
- autoSelectFamily : false ,
112
- autoSelectFamilyAttemptTimeout : 100 ,
113
- host : 'localhost' ,
114
- port : 27017 ,
115
- servername : 'localhost' ,
116
- ca : sinon . match . defined ,
117
- cert : sinon . match . defined ,
118
- key : sinon . match . defined
119
- } ) ;
108
+ expect ( tlsSpy ) . to . have . been . calledWith (
109
+ sinon . match ( {
110
+ autoSelectFamily : false ,
111
+ autoSelectFamilyAttemptTimeout : 100 ,
112
+ ca : sinon . match . defined ,
113
+ cert : sinon . match . defined ,
114
+ key : sinon . match . defined
115
+ } )
116
+ ) ;
120
117
} ) ;
121
118
} ) ;
122
119
0 commit comments