Added Jest for testing both front and backend

This commit is contained in:
Jori Lallo
2016-09-09 01:35:39 -07:00
parent f4d1e62c13
commit 458735f341
21 changed files with 370 additions and 18 deletions

View File

@ -10,8 +10,6 @@ export default function auth({ require = true } = {}) {
return async function authMiddleware(ctx, next) {
let token;
console.log(ctx.body);
const authorizationHeader = ctx.request.get('authorization');
if (authorizationHeader) {
const parts = authorizationHeader.split(' ');