mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add assertions for tag properties
This commit is contained in:
parent
9a96f070d5
commit
56634bdb49
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue