From 8661418313183ee33cdfe1be06416ff481508a1c Mon Sep 17 00:00:00 2001 From: Jack Lu Date: Thu, 12 Jan 2023 14:03:00 +0800 Subject: [PATCH] test.js: add missing semicolon --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 94cb234..07f643a 100644 --- a/test/test.js +++ b/test/test.js @@ -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); @@ -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);