Update tests to assert against translation strings

This commit is contained in:
Blade Barringer
2015-10-30 09:01:57 -05:00
parent d3a6ff5b2d
commit aa111b3c1a
21 changed files with 157 additions and 52 deletions

View File

@@ -1,6 +1,7 @@
import {
generateUser,
requester,
translate as t,
} from '../../helpers/api.helper';
describe('DELETE /user', () => {
@@ -17,10 +18,14 @@ describe('DELETE /user', () => {
return api.get('/user');
})).to.eventually.be.rejected.and.eql({
code: 401,
text: 'No user found.',
text: t('messageAuthNoUserFound'),
});
});
context('user has active subscription', () => {
it('does not delete account');
});
context('user in solo group', () => {
it('deletes party when user is the only member');