mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
tests(api): Add async to every it, before and beforeEach in v2 tests
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user