mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Add assertions for correctly mapping V1 properties
This commit is contained in:
@@ -314,6 +314,13 @@ describe "ProjectController", ->
|
||||
it 'should include V1 projects', (done) ->
|
||||
@res.render = (pageName, opts) =>
|
||||
opts.projects.length.should.equal (@projects.length + @collabertions.length + @readOnly.length + @V1Response.projects.length)
|
||||
opts.projects.forEach (p) ->
|
||||
# Check properties correctly mapped from V1
|
||||
expect(p).to.have.property 'id'
|
||||
expect(p).to.have.property 'name'
|
||||
expect(p).to.have.property 'lastUpdated'
|
||||
expect(p).to.have.property 'accessLevel'
|
||||
expect(p).to.have.property 'archived'
|
||||
done()
|
||||
@ProjectController.projectListPage @req, @res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user