Handle removal of mongoose callback API for UserMemberships
GitOrigin-RevId: 0bdfaf4bfb357d75ee05513cf524540eef7fcec4
This commit is contained in:
@@ -21,9 +21,9 @@ describe('UserMembershipsHandler', function () {
|
||||
beforeEach(function () {
|
||||
this.user = { _id: new ObjectId() }
|
||||
|
||||
this.Institution = { updateMany: sinon.stub().yields(null) }
|
||||
this.Subscription = { updateMany: sinon.stub().yields(null) }
|
||||
this.Publisher = { updateMany: sinon.stub().yields(null) }
|
||||
this.Institution = { updateMany: sinon.stub().resolves(null) }
|
||||
this.Subscription = { updateMany: sinon.stub().resolves(null) }
|
||||
this.Publisher = { updateMany: sinon.stub().resolves(null) }
|
||||
return (this.UserMembershipsHandler = SandboxedModule.require(modulePath, {
|
||||
requires: {
|
||||
'../../models/Institution': {
|
||||
|
||||
Reference in New Issue
Block a user