From 5187dc3c971564d2ac8aecfdba152b3303432c12 Mon Sep 17 00:00:00 2001 From: 3imed-jaberi Date: Sun, 26 Jan 2020 21:36:30 +0100 Subject: [PATCH] =?UTF-8?q?=20use=20string=20template=20over=20+=20?= =?UTF-8?q?=F0=9F=93=8D..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-server.js b/test/test-server.js index fe81c22..7c1d4ff 100644 --- a/test/test-server.js +++ b/test/test-server.js @@ -15,7 +15,7 @@ console.log('You can test the server by issuing curl commands like the following console.log(''); console.log(' curl http://localhost:3000/public/foo # should succeed (return "unprotected")'); console.log(' curl http://localhost:3000/api/foo # should fail (return "401 Unauthorized ...")'); -console.log(' curl -H "Authorization: Bearer ' + TOKEN + '" http://localhost:3000/api/foo # should succeed (return "protected")'); +console.log(` curl -H "Authorization: Bearer ${TOKEN}" http://localhost:3000/api/foo # should succeed (return "protected")`); console.log(''); const app = new Koa();