mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
Merge pull request #16979 from overleaf/jpa-join-project-remove-sl-1
[misc] joinProject: pass userId and anonymous access token in body 1/2 GitOrigin-RevId: 5d7832246c7262c004c2cd465d62488384b35ee3
This commit is contained in:
@@ -167,6 +167,7 @@ describe('EditorHttpController', function () {
|
||||
beforeEach(function () {
|
||||
this.req.params = { Project_id: this.project._id }
|
||||
this.req.query = { user_id: this.user._id }
|
||||
this.req.body = { userId: this.user._id }
|
||||
})
|
||||
|
||||
describe('successfully', function () {
|
||||
@@ -251,6 +252,10 @@ describe('EditorHttpController', function () {
|
||||
beforeEach(function (done) {
|
||||
this.token = 'token'
|
||||
this.TokenAccessHandler.getRequestToken.returns(this.token)
|
||||
this.req.body = {
|
||||
userId: 'anonymous-user',
|
||||
anonymousAccessToken: this.token,
|
||||
}
|
||||
this.req.query = { user_id: 'anonymous-user' }
|
||||
this.req.headers = { 'x-sl-anonymous-access-token': this.token }
|
||||
this.res.callback = done
|
||||
|
||||
Reference in New Issue
Block a user