mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Merge pull request #2182 from overleaf/ta-remove-user-stubs
Remove Usages of UserStub GitOrigin-RevId: 6896d0d3594d12ffa06211838ae2274661c77f4f
This commit is contained in:
committed by
sharelatex
parent
962c5cc273
commit
2eb1f510c1
@@ -97,8 +97,7 @@ describe('ProjectController', function() {
|
||||
this.UserGetter = {
|
||||
getUser: sinon
|
||||
.stub()
|
||||
.callsArgWith(2, null, { lastLoginIp: '192.170.18.2' }),
|
||||
getUserOrUserStubById: sinon.stub().callsArgWith(2, null, {})
|
||||
.callsArgWith(2, null, { lastLoginIp: '192.170.18.2' })
|
||||
}
|
||||
this.Modules = {
|
||||
hooks: {
|
||||
@@ -404,7 +403,7 @@ describe('ProjectController', function() {
|
||||
this.UserModel.findById = (id, fields, callback) => {
|
||||
callback(null, this.users[id])
|
||||
}
|
||||
this.UserGetter.getUserOrUserStubById = (id, fields, callback) => {
|
||||
this.UserGetter.getUser = (id, fields, callback) => {
|
||||
callback(null, this.users[id])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user