tests(api): Convert simple user generation to use await

This commit is contained in:
Blade Barringer
2016-01-01 13:17:25 -06:00
parent ed753f4921
commit 70b23d0629
12 changed files with 16 additions and 42 deletions

View File

@@ -7,10 +7,8 @@ describe('PUT /user/tasks/:id', () => {
let user, task;
beforeEach(async () => {
return generateUser().then((_user) => {
user = _user;
task = user.todos[0];
});
user = await generateUser();
task = user.todos[0];
});
it('does not update the id of the task', async () => {