uncommented tests

This commit is contained in:
Dan Ribbens
2019-09-23 13:59:22 -04:00
parent 3d026a201b
commit 0fb82ac152

View File

@@ -4,12 +4,12 @@ import * as faker from 'faker';
describe('API', () => {
let token = null;
beforeAll(async () => {
// const loginResponse = await axios.post('http://localhost:3000/login', {
// email: 'test@test.com',
// password: 'test123'
// });
// token = loginResponse.data.token;
// expect(loginResponse.status).toBe(200);
const loginResponse = await axios.post('http://localhost:3000/login', {
email: 'test@test.com',
password: 'test123'
});
token = loginResponse.data.token;
expect(loginResponse.status).toBe(200);
});
it('should allow create user', async () => {