mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 06:07:07 +00:00
Simplify delete user test
This commit is contained in:
parent
d5c346bf3f
commit
f84a10ee4e
1 changed files with 2 additions and 5 deletions
|
|
@ -18,11 +18,8 @@ describe('DELETE /user', () => {
|
|||
|
||||
it('deletes the user', () => {
|
||||
return expect(api.del('/user').then((fetchedUser) => {
|
||||
return api.get('/user');
|
||||
})).to.eventually.be.rejected.and.eql({
|
||||
code: 401,
|
||||
text: t('messageAuthNoUserFound'),
|
||||
});
|
||||
return checkExistence('users', user._id);
|
||||
})).to.eventually.eql(false);
|
||||
});
|
||||
|
||||
context('user has active subscription', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue