mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Reinstate error code in resolve promise for api tests.
This commit is contained in:
@@ -15,7 +15,10 @@ describe('DELETE /user', () => {
|
||||
it('deletes the user', () => {
|
||||
return expect(api.del('/user').then((fetchedUser) => {
|
||||
return api.get('/user');
|
||||
})).to.be.rejectedWith('No user found.');
|
||||
})).to.eventually.be.rejected.and.eql({
|
||||
code: 401,
|
||||
text: 'No user found.',
|
||||
});
|
||||
});
|
||||
|
||||
context('user in solo group', () => {
|
||||
|
||||
Reference in New Issue
Block a user