From 0fb82ac15220fdea98d18ffcde6f32f3802bf7cd Mon Sep 17 00:00:00 2001 From: Dan Ribbens Date: Mon, 23 Sep 2019 13:59:22 -0400 Subject: [PATCH] uncommented tests --- src/tests/integration/api.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/integration/api.spec.js b/src/tests/integration/api.spec.js index d3662b5bd1..7c2b6ae943 100644 --- a/src/tests/integration/api.spec.js +++ b/src/tests/integration/api.spec.js @@ -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 () => {