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