Merge pull request #4338 from overleaf/ab-session-manager
Extract functions from AuthenticationController to SessionManager GitOrigin-RevId: 86870ce03a762e1a837dcf493759e8851e759883
This commit is contained in:
committed by
Copybot
parent
7e61fc4035
commit
9468e5cb4f
@@ -54,7 +54,7 @@ describe('UserMembershipController', function () {
|
||||
},
|
||||
]
|
||||
|
||||
this.AuthenticationController = {
|
||||
this.SessionManager = {
|
||||
getSessionUser: sinon.stub().returns(this.user),
|
||||
getLoggedInUserId: sinon.stub().returns(this.user._id),
|
||||
}
|
||||
@@ -69,8 +69,7 @@ describe('UserMembershipController', function () {
|
||||
modulePath,
|
||||
{
|
||||
requires: {
|
||||
'../Authentication/AuthenticationController': this
|
||||
.AuthenticationController,
|
||||
'../Authentication/SessionManager': this.SessionManager,
|
||||
'./UserMembershipHandler': this.UserMembershipHandler,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user