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

View File

@@ -111,8 +111,7 @@ describe('POST /groups', () => {
done('Unexpected success');
})
.catch((err) => {
expect(err.code).to.eql(400);
expect(err.text).to.eql('Already in a party, try refreshing.');
expect(err).to.eql('Already in a party, try refreshing.');
done();
});
})
@@ -126,8 +125,7 @@ describe('POST /groups', () => {
done('Unexpected success');
})
.catch((err) => {
expect(err.code).to.eql(400);
expect(err.text).to.eql('Parties must be private');
expect(err).to.eql('Parties must be private');
done();
});
});
@@ -157,8 +155,7 @@ describe('POST /groups', () => {
}).then((group) => {
done('Unexpected success');
}).catch((err) => {
expect(err.code).to.eql(401);
expect(err.text).to.eql('Not enough gems!');
expect(err).to.eql('Not enough gems!');
done();
});
});