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
+1 -2
View File
@@ -90,8 +90,7 @@ describe('POST /groups/:id/leave', () => {
api.post(`/groups/${group._id}/leave`).then((result) => {
return api.get(`/groups/${group._id}`);
}).then(done).catch((err) => {
expect(err.code).to.eql(404);
expect(err.text).to.eql('Group not found or you don\'t have access.');
expect(err).to.eql('Group not found or you don\'t have access.');
done();
});
});