Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 18, 2019
1 parent 55f0b14 commit 0d400e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/global-agent/factories/createGlobalProxyAgent.js
Expand Up @@ -90,7 +90,7 @@ const createHttpResponseResolver = (resolve) => {
const createProxyServer = async (maybeBeforeSendRequest) => {
const port = await getNextPort();

let beforeSendRequest = (requestDetails) => {
let beforeSendRequest = () => {
return {
response: {
body: 'OK',
Expand All @@ -117,11 +117,11 @@ const createProxyServer = async (maybeBeforeSendRequest) => {

proxyServer.on('ready', () => {
resolve({
port,
stop: () => {
proxyServer.close();
},
url: 'http://127.0.0.1:' + port,
port,
});
});

Expand Down Expand Up @@ -183,7 +183,7 @@ test('proxies HTTP request with proxy-authorization header', async (t) => {
statusCode: 200,
},
};
})
});

const proxyServer = await createProxyServer(beforeSendRequest);

Expand All @@ -195,7 +195,7 @@ test('proxies HTTP request with proxy-authorization header', async (t) => {

t.assert(response.body === 'OK');

t.is(beforeSendRequest.firstCall.args[0].requestOptions.headers['proxy-authorization'], 'Basic Zm9v')
t.is(beforeSendRequest.firstCall.args[0].requestOptions.headers['proxy-authorization'], 'Basic Zm9v');
});

test('proxies HTTPS request', async (t) => {
Expand Down

0 comments on commit 0d400e9

Please sign in to comment.