Fix UserGetter email retrieval with affiliations disabled (#2085)

GitOrigin-RevId: f868333f3c18f674b7ba9c387315c2d5ad1fd80b
This commit is contained in:
Miguel Serrano
2019-08-19 15:19:57 +00:00
committed by sharelatex
parent 8c55989166
commit 9a8a182c1b
2 changed files with 8 additions and 0 deletions
@@ -63,6 +63,9 @@ describe('UserGetter', function() {
'../Institutions/InstitutionsAPI': {
getUserAffiliations: this.getUserAffiliations
},
'../../infrastructure/Features': {
hasFeature: sinon.stub().returns(true)
},
'../Errors/Errors': Errors
}
}))