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

@@ -5,13 +5,13 @@ import {
describe('POST /user/pushDevice', () => {
let user;
beforeEach(() => {
beforeEach(async () => {
return generateUser().then((_user) => {
user = _user;
});
});
it('registers a device id', () => {
it('registers a device id', async () => {
return user.post('/user/pushDevice', {
regId: '123123',
type: 'android',