mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
tests(api): Convert simple user generation to use await
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user