tests(api): Add async to every it, before and beforeEach in v2 tests

This commit is contained in:
Blade Barringer
2016-01-01 10:32:28 -06:00
parent 23aaf78167
commit 69c5192f70
28 changed files with 186 additions and 186 deletions

View File

@@ -6,7 +6,7 @@ import {
describe('GET /user/tasks/', () => {
let user;
beforeEach(() => {
beforeEach(async () => {
return generateUser({
dailys: [
{text: 'daily', type: 'daily'},
@@ -19,7 +19,7 @@ describe('GET /user/tasks/', () => {
});
});
it('gets all tasks', () => {
it('gets all tasks', async () => {
return user.get(`/user/tasks/`).then((tasks) => {
expect(tasks).to.be.an('array');
expect(tasks.length).to.be.greaterThan(3);