summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-url.parse-path.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-url.parse-path.js')
-rw-r--r--test/parallel/test-http-url.parse-path.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-url.parse-path.js b/test/parallel/test-http-url.parse-path.js
index e5a1306f8e..6fab8bb0eb 100644
--- a/test/parallel/test-http-url.parse-path.js
+++ b/test/parallel/test-http-url.parse-path.js
@@ -9,7 +9,7 @@ function check(request) {
assert.strictEqual(request.url, '/asdf');
}
-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, {});
@@ -18,7 +18,7 @@ var server = http.createServer(function(request, response) {
});
server.listen(0, function() {
- var testURL = url.parse(`http://localhost:${this.address().port}/asdf`);
+ const testURL = url.parse(`http://localhost:${this.address().port}/asdf`);
// make the request
http.request(testURL).end();