|
@@ -33,6 +33,12 @@ describe('SAMLIdentityManager', function() {
|
|
|
this.institution = {
|
|
this.institution = {
|
|
|
name: 'Overleaf University'
|
|
name: 'Overleaf University'
|
|
|
}
|
|
}
|
|
|
|
|
+ this.InstitutionsAPI = {
|
|
|
|
|
+ promises: {
|
|
|
|
|
+ addEntitlement: sinon.stub().resolves(),
|
|
|
|
|
+ removeEntitlement: sinon.stub().resolves()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
this.SAMLIdentityManager = SandboxedModule.require(modulePath, {
|
|
this.SAMLIdentityManager = SandboxedModule.require(modulePath, {
|
|
|
requires: {
|
|
requires: {
|
|
|
'../Email/EmailHandler': (this.EmailHandler = {
|
|
'../Email/EmailHandler': (this.EmailHandler = {
|
|
@@ -59,7 +65,8 @@ describe('SAMLIdentityManager', function() {
|
|
|
}),
|
|
}),
|
|
|
'../User/UserUpdater': (this.UserUpdater = {
|
|
'../User/UserUpdater': (this.UserUpdater = {
|
|
|
addEmailAddress: sinon.stub()
|
|
addEmailAddress: sinon.stub()
|
|
|
- })
|
|
|
|
|
|
|
+ }),
|
|
|
|
|
+ '../Institutions/InstitutionsAPI': this.InstitutionsAPI
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|