v3: fix tags tests

This commit is contained in:
Matteo Pagliazzi
2016-05-01 14:15:26 +02:00
parent a8fbafb801
commit 8391494b89
2 changed files with 5 additions and 3 deletions

View File

@@ -23,7 +23,9 @@ describe('GET /models/:model/paths', () => {
it(`returns the model paths for ${model}`, async () => {
let res = await user.get(`/models/${model}/paths`);
expect(res._id).to.equal('String');
if (model !== 'tag') expect(res._id).to.equal('String');
if (model === 'tag') expect(res.id).to.equal('String');
expect(res).to.not.have.keys('__v');
});
});