Add assertions for tag properties

This commit is contained in:
Alasdair Smith 2017-11-02 12:16:11 +00:00
parent 9a96f070d5
commit 56634bdb49

View file

@ -327,6 +327,9 @@ describe "ProjectController", ->
it 'should include V1 tags', (done) ->
@res.render = (pageName, opts) =>
opts.tags.length.should.equal (@tags.length + @V1Response.tags.length)
opts.tags.forEach (t) ->
expect(t).to.have.property 'name'
expect(t).to.have.property 'project_ids'
done()
@ProjectController.projectListPage @req, @res