@@ -47,7 +47,7 @@ describe('Configuring the driver', () => {
4747 expect ( headers ) . to . have . a . property ( 'x-two' , '2' )
4848 done ( )
4949 }
50- conn . request ( )
50+ conn . request ( { headers : { } } )
5151 } )
5252 } )
5353 describe ( 'with an arangoVersion' , ( ) => {
@@ -57,7 +57,7 @@ describe('Configuring the driver', () => {
5757 expect ( headers ) . to . have . a . property ( 'x-arango-version' , 99999 )
5858 done ( )
5959 }
60- conn . request ( )
60+ conn . request ( { headers : { } } )
6161 } )
6262 it ( 'does not overwrite explicit headers' , ( done ) => {
6363 const conn = new Connection ( {
@@ -68,7 +68,7 @@ describe('Configuring the driver', () => {
6868 expect ( headers ) . to . have . a . property ( 'x-arango-version' , 66666 )
6969 done ( )
7070 }
71- conn . request ( )
71+ conn . request ( { headers : { } } )
7272 } )
7373 } )
7474 describe ( 'with agentOptions' , ( ) => {
@@ -140,28 +140,28 @@ describe('Configuring the driver', () => {
140140 let agent = 1
141141 let conn
142142 conn = new Connection ( { agent} ) // default: http
143- conn . request ( )
143+ conn . request ( { headers : { } } )
144144 expect ( options ) . to . have . a . property ( 'agent' , agent )
145145 agent ++
146146 conn = new Connection ( { agent, url : 'https://localhost:8529' } )
147- conn . request ( )
147+ conn . request ( { headers : { } } )
148148 expect ( options ) . to . have . a . property ( 'agent' , agent )
149149 agent ++
150150 conn = new Connection ( { agent, url : 'http://localhost:8529' } )
151- conn . request ( )
151+ conn . request ( { headers : { } } )
152152 expect ( options ) . to . have . a . property ( 'agent' , agent )
153153 } )
154154 it ( 'uses the request function for the protocol' , ( ) => {
155155 const agent = 1
156156 let conn
157157 conn = new Connection ( { agent} ) // default: http
158- conn . request ( )
158+ conn . request ( { headers : { } } )
159159 expect ( protocol ) . to . equal ( 'http' )
160160 conn = new Connection ( { agent, url : 'https://localhost:8529' } )
161- conn . request ( )
161+ conn . request ( { headers : { } } )
162162 expect ( protocol ) . to . equal ( 'https' )
163163 conn = new Connection ( { agent, url : 'http://localhost:8529' } )
164- conn . request ( )
164+ conn . request ( { headers : { } } )
165165 expect ( protocol ) . to . equal ( 'http' )
166166 } )
167167 } )
0 commit comments