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

@@ -9,9 +9,7 @@ describe('PUT /user', () => {
let user;
beforeEach(async () => {
return generateUser().then((usr) => {
user = usr;
});
user = await generateUser();
});
context('allowed operations', () => {