Simplify delete user test

This commit is contained in:
Blade Barringer
2015-10-31 21:37:17 -05:00
parent d5c346bf3f
commit f84a10ee4e

View File

@@ -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', () => {