mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Simplify delete user test
This commit is contained in:
@@ -18,11 +18,8 @@ describe('DELETE /user', () => {
|
|||||||
|
|
||||||
it('deletes the user', () => {
|
it('deletes the user', () => {
|
||||||
return expect(api.del('/user').then((fetchedUser) => {
|
return expect(api.del('/user').then((fetchedUser) => {
|
||||||
return api.get('/user');
|
return checkExistence('users', user._id);
|
||||||
})).to.eventually.be.rejected.and.eql({
|
})).to.eventually.eql(false);
|
||||||
code: 401,
|
|
||||||
text: t('messageAuthNoUserFound'),
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
context('user has active subscription', () => {
|
context('user has active subscription', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user