Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 10, 2019
1 parent 829905f commit 451edbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ HttpsProxyAgent.prototype.callback = function connect(req, opts, fn) {
socket = new net.Socket();
socket.readable = true;


// save a reference to the concat'd Buffer for the `onsocket` callback
buffers = buffered;

Expand Down
15 changes: 9 additions & 6 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,15 @@ describe('HttpsProxyAgent', function() {
process.env.http_proxy ||
'http://localhost:' + proxyPort;

const req = http.get({
agent: new HttpsProxyAgent(proxyUri)
}, function(res) {
assert.equal(407, res.statusCode);
req.abort();
});
const req = http.get(
{
agent: new HttpsProxyAgent(proxyUri)
},
function(res) {
assert.equal(407, res.statusCode);
req.abort();
}
);

req.on('abort', done);
});
Expand Down

0 comments on commit 451edbb

Please sign in to comment.