Add optional personal access tokens for git bridge (#15209)

GitOrigin-RevId: 50d4c0e11728e014e81172c062a3b22fefa6286c
This commit is contained in:
Alf Eaton
2023-10-19 09:26:45 +01:00
committed by Copybot
parent 39e99c6f9a
commit d512c8f614
20 changed files with 198 additions and 73 deletions
@@ -82,6 +82,11 @@ describe('UserPagesController', function () {
getAdminEmail: sinon.stub().returns(this.adminEmail),
},
}
this.SplitTestHandler = {
promises: {
getAssignment: sinon.stub().returns('default'),
},
}
this.UserPagesController = SandboxedModule.require(modulePath, {
requires: {
'@overleaf/settings': this.settings,
@@ -96,6 +101,7 @@ describe('UserPagesController', function () {
'../../../../modules/oauth2-server/app/src/OAuthPersonalAccessTokenManager':
this.PersonalAccessTokenManager,
'../Authentication/SessionManager': this.SessionManager,
'../SplitTests/SplitTestHandler': this.SplitTestHandler,
request: (this.request = sinon.stub()),
},
})