Add text assertion to test

This commit is contained in:
Blade Barringer 2015-10-29 08:42:37 -05:00
parent 6ff904bd5a
commit ee55c44548

View file

@ -20,6 +20,9 @@ describe('GET /user/tags/id', () => {
it('fails for non-existent tags', () => {
return expect(api.get('/user/tags/not-an-id'))
.to.eventually.be.rejected.with.property('code', 404);
.to.eventually.be.rejected.and.eql({
code: 404,
text: 'Tag not found.'
});
});
});