Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit ae41ea9

Browse files
committed
minor cleanup
1 parent 261e866 commit ae41ea9

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

test/9.custom-request-clients.test.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/* global describe, it */
1+
/* global describe, it, after */
22
'use strict'
33

44
const request = require('supertest')
55
const expect = require('chai').expect
66

77
let 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

Comments
 (0)