Skip to content

Commit

Permalink
test.js: add missing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
panlina committed Jan 12, 2023
1 parent e4e2e2b commit 8661418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ it('proxy', async function () {
site.start();
var port = site.server.address().port;
var adminPort = site.adminServer.address().port;
var targetServer = http.createServer((req, res) => { res.write("42"); res.end(); })
var targetServer = http.createServer((req, res) => { res.write("42"); res.end(); });
targetServer.listen(8008);
var response = await request.put(`http://localhost:${adminPort}/proxy-rule/%2fa`, { json: true, body: "http://localhost:8008" });
assert.equal(response.statusCode, 201);
Expand All @@ -47,7 +47,7 @@ it('vhost', async function () {
site.start();
var port = site.server.address().port;
var adminPort = site.adminServer.address().port;
var targetServer = http.createServer((req, res) => { res.write("42"); res.end(); })
var targetServer = http.createServer((req, res) => { res.write("42"); res.end(); });
targetServer.listen(8008);
var response = await request.put(`http://localhost:${adminPort}/vhost/a.localhost`, { json: true, body: "http://localhost:8008" });
assert.equal(response.statusCode, 201);
Expand Down

0 comments on commit 8661418

Please sign in to comment.