mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
Add text assertion to test
This commit is contained in:
parent
6ff904bd5a
commit
ee55c44548
1 changed files with 4 additions and 1 deletions
|
|
@ -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.'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue