|
|
@@ -69,10 +69,10 @@ describe('UserMembershipController', function () {
|
|
|
getSessionUser: sinon.stub().returns(this.user),
|
|
|
getLoggedInUserId: sinon.stub().returns(this.user._id),
|
|
|
}
|
|
|
- this.SSOConfigManager = {
|
|
|
- promises: {
|
|
|
- getSSOConfig: sinon.stub().resolves({ enabled: true }),
|
|
|
- },
|
|
|
+ this.SSOConfig = {
|
|
|
+ findById: sinon
|
|
|
+ .stub()
|
|
|
+ .returns({ exec: sinon.stub().resolves({ enabled: true }) }),
|
|
|
}
|
|
|
this.UserMembershipHandler = {
|
|
|
getEntity: sinon.stub().yields(null, this.subscription),
|
|
|
@@ -96,8 +96,7 @@ describe('UserMembershipController', function () {
|
|
|
'../SplitTests/SplitTestHandler': this.SplitTestHandler,
|
|
|
'./UserMembershipHandler': this.UserMembershipHandler,
|
|
|
'@overleaf/settings': this.Settings,
|
|
|
- '../../../../modules/managed-users/app/src/SSOConfigManager':
|
|
|
- this.SSOConfigManager,
|
|
|
+ '../../models/SSOConfig': { SSOConfig: this.SSOConfig },
|
|
|
},
|
|
|
}
|
|
|
))
|