mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
tests(api): Add sync method to api objects
This commit is contained in:
@@ -58,10 +58,10 @@ describe('POST /groups/:id', () => {
|
||||
description: 'New group description',
|
||||
});
|
||||
|
||||
let group = await user.get(`/groups/${usersGroup._id}`);
|
||||
await usersGroup.sync();
|
||||
|
||||
expect(group.name).to.eql('New Group Title');
|
||||
expect(group.description).to.eql('New group description');
|
||||
expect(usersGroup.name).to.eql('New Group Title');
|
||||
expect(usersGroup.description).to.eql('New group description');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user