mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:05:50 +00:00
Adjust UserController unit tests
This commit is contained in:
parent
88bef5c5ea
commit
ab26edb44b
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,10 @@ describe "UserController", ->
|
|||
siteUrl: "sharelatex.example.com"
|
||||
@UserHandler =
|
||||
populateGroupLicenceInvite:sinon.stub().callsArgWith(1)
|
||||
@UserSessionsManager =
|
||||
onLogin: sinon.stub()
|
||||
onLogout: sinon.stub()
|
||||
revokeAllSessions: sinon.stub().callsArgWith(1, null)
|
||||
@UserController = SandboxedModule.require modulePath, requires:
|
||||
"./UserLocator": @UserLocator
|
||||
"./UserDeleter": @UserDeleter
|
||||
|
@ -56,6 +60,7 @@ describe "UserController", ->
|
|||
"../Referal/ReferalAllocator":@ReferalAllocator
|
||||
"../Subscription/SubscriptionDomainHandler":@SubscriptionDomainHandler
|
||||
"./UserHandler":@UserHandler
|
||||
"./UserSessionsManager": @UserSessionsManager
|
||||
"settings-sharelatex": @settings
|
||||
"logger-sharelatex":
|
||||
log:->
|
||||
|
|
Loading…
Reference in a new issue