mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Add additional check for stat change
This commit is contained in:
@@ -20,9 +20,11 @@ describe.only('PUT /user', () => {
|
|||||||
return api.put('/user', {
|
return api.put('/user', {
|
||||||
'profile.name' : 'Frodo',
|
'profile.name' : 'Frodo',
|
||||||
'preferences.costume': true,
|
'preferences.costume': true,
|
||||||
|
'stats.hp': 14,
|
||||||
}).then((updatedUser) => {
|
}).then((updatedUser) => {
|
||||||
expect(updatedUser.profile.name).to.eql('Frodo');
|
expect(updatedUser.profile.name).to.eql('Frodo');
|
||||||
expect(updatedUser.preferences.costume).to.eql(true);
|
expect(updatedUser.preferences.costume).to.eql(true);
|
||||||
|
expect(updatedUser.stats.hp).to.eql(14);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user