summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-url.parse-basic.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-url.parse-basic.js')
-rw-r--r--test/parallel/test-http-url.parse-basic.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http-url.parse-basic.js b/test/parallel/test-http-url.parse-basic.js
index 0fa8f10465..ac22b6e38d 100644
--- a/test/parallel/test-http-url.parse-basic.js
+++ b/test/parallel/test-http-url.parse-basic.js
@@ -4,7 +4,7 @@ const assert = require('assert');
const http = require('http');
const url = require('url');
-var testURL;
+let testURL;
// make sure the basics work
function check(request) {
@@ -17,7 +17,7 @@ function check(request) {
testURL.hostname + ':' + testURL.port);
}
-var server = http.createServer(function(request, response) {
+const server = http.createServer(function(request, response) {
// run the check function
check.call(this, request, response);
response.writeHead(200, {});
@@ -29,7 +29,7 @@ server.listen(0, function() {
testURL = url.parse(`http://localhost:${this.address().port}`);
// make the request
- var clientRequest = http.request(testURL);
+ const clientRequest = http.request(testURL);
// since there is a little magic with the agent
// make sure that an http request uses the http.Agent
assert.ok(clientRequest.agent instanceof http.Agent);