mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +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', () => {
|
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', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue