1- /* global describe, it */
1+ /* global describe, it, after */
22'use strict'
33
44const request = require ( 'supertest' )
55const expect = require ( 'chai' ) . expect
66
77let service
88
9- describe ( 'fast-proxy custom request clients' , ( ) => {
9+ describe ( 'fast-proxy custom request clients/agents ' , ( ) => {
1010 it ( 'init & start remote service' , async ( ) => {
1111 // init remote service
1212 service = require ( 'restana' ) ( )
@@ -42,10 +42,7 @@ describe('fast-proxy custom request clients', () => {
4242 gateway = require ( 'restana' ) ( )
4343
4444 gateway . all ( '/service/*' , function ( req , res ) {
45- proxy ( req , res , req . url , {
46- base : req . headers . base ,
47- queryString : { age : 33 }
48- } )
45+ proxy ( req , res , req . url , { } )
4946 } )
5047
5148 gHttpServer = await gateway . start ( 8080 )
@@ -75,7 +72,7 @@ describe('fast-proxy custom request clients', () => {
7572 requests : {
7673 http : require ( 'follow-redirects/http' ) ,
7774 https : require ( 'follow-redirects/https' )
78- } ,
75+ }
7976 } )
8077 close = fastProxy . close
8178 proxy = fastProxy . proxy
@@ -89,10 +86,7 @@ describe('fast-proxy custom request clients', () => {
8986 gateway = require ( 'restana' ) ( )
9087
9188 gateway . all ( '/service/*' , function ( req , res ) {
92- proxy ( req , res , req . url , {
93- base : req . headers . base ,
94- queryString : { age : 33 }
95- } )
89+ proxy ( req , res , req . url , { } )
9690 } )
9791
9892 gHttpServer = await gateway . start ( 8081 )
0 commit comments