Skip to content

Commit

Permalink
use string template over + πŸ“..
Browse files Browse the repository at this point in the history
  • Loading branch information
3imed-jaberi committed Jan 26, 2020
1 parent 83d896c commit 5187dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5187dc3

Please sign in to comment.