Change helper to reject only error message

This commit is contained in:
Blade Barringer
2015-10-24 22:23:30 -05:00
parent a0547b99ca
commit b763aedd29
8 changed files with 12 additions and 25 deletions
@@ -40,8 +40,7 @@ describe('POST /groups/:id/removeMember', () => {
api.post(`/groups/${group._id}/removeMember`, null, {
uuid: leader._id,
}).then(done).catch((err) => {
expect(err.code).to.eql(401);
expect(err.text).to.eql('You cannot remove yourself!');
expect(err).to.eql('You cannot remove yourself!');
done();
});
});