From 0d400e947807b698e811257bd40f03658b3c26ed Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Fri, 18 Oct 2019 13:53:24 +0100 Subject: [PATCH] fix: style --- test/global-agent/factories/createGlobalProxyAgent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/global-agent/factories/createGlobalProxyAgent.js b/test/global-agent/factories/createGlobalProxyAgent.js index 18f7e026..1039acaf 100644 --- a/test/global-agent/factories/createGlobalProxyAgent.js +++ b/test/global-agent/factories/createGlobalProxyAgent.js @@ -90,7 +90,7 @@ const createHttpResponseResolver = (resolve) => { const createProxyServer = async (maybeBeforeSendRequest) => { const port = await getNextPort(); - let beforeSendRequest = (requestDetails) => { + let beforeSendRequest = () => { return { response: { body: 'OK', @@ -117,11 +117,11 @@ const createProxyServer = async (maybeBeforeSendRequest) => { proxyServer.on('ready', () => { resolve({ + port, stop: () => { proxyServer.close(); }, url: 'http://127.0.0.1:' + port, - port, }); }); @@ -183,7 +183,7 @@ test('proxies HTTP request with proxy-authorization header', async (t) => { statusCode: 200, }, }; - }) + }); const proxyServer = await createProxyServer(beforeSendRequest); @@ -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) => {