mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 17:39:04 +00:00
Include token based
This commit is contained in:
parent
d9c19ccdc4
commit
47942816ae
1 changed files with 9 additions and 2 deletions
|
@ -282,7 +282,7 @@ describe "ProjectController", ->
|
|||
|
||||
it "should send the projects", (done)->
|
||||
@res.render = (pageName, opts)=>
|
||||
opts.projects.length.should.equal (@projects.length + @collabertions.length + @readOnly.length)
|
||||
opts.projects.length.should.equal (@projects.length + @collabertions.length + @readOnly.length + @tokenReadAndWrite.length + @tokenReadOnly.length)
|
||||
done()
|
||||
@ProjectController.projectListPage @req, @res
|
||||
|
||||
|
@ -313,7 +313,14 @@ 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.length.should.equal (
|
||||
@projects.length +
|
||||
@collabertions.length +
|
||||
@readOnly.length +
|
||||
@tokenReadAndWrite.length +
|
||||
@tokenReadOnly.length +
|
||||
@V1Response.projects.length
|
||||
)
|
||||
opts.projects.forEach (p) ->
|
||||
# Check properties correctly mapped from V1
|
||||
expect(p).to.have.property 'id'
|
||||
|
|
Loading…
Add table
Reference in a new issue