mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 04:12:00 +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"
|
siteUrl: "sharelatex.example.com"
|
||||||
@UserHandler =
|
@UserHandler =
|
||||||
populateGroupLicenceInvite:sinon.stub().callsArgWith(1)
|
populateGroupLicenceInvite:sinon.stub().callsArgWith(1)
|
||||||
|
@UserSessionsManager =
|
||||||
|
onLogin: sinon.stub()
|
||||||
|
onLogout: sinon.stub()
|
||||||
|
revokeAllSessions: sinon.stub().callsArgWith(1, null)
|
||||||
@UserController = SandboxedModule.require modulePath, requires:
|
@UserController = SandboxedModule.require modulePath, requires:
|
||||||
"./UserLocator": @UserLocator
|
"./UserLocator": @UserLocator
|
||||||
"./UserDeleter": @UserDeleter
|
"./UserDeleter": @UserDeleter
|
||||||
|
@ -56,6 +60,7 @@ describe "UserController", ->
|
||||||
"../Referal/ReferalAllocator":@ReferalAllocator
|
"../Referal/ReferalAllocator":@ReferalAllocator
|
||||||
"../Subscription/SubscriptionDomainHandler":@SubscriptionDomainHandler
|
"../Subscription/SubscriptionDomainHandler":@SubscriptionDomainHandler
|
||||||
"./UserHandler":@UserHandler
|
"./UserHandler":@UserHandler
|
||||||
|
"./UserSessionsManager": @UserSessionsManager
|
||||||
"settings-sharelatex": @settings
|
"settings-sharelatex": @settings
|
||||||
"logger-sharelatex":
|
"logger-sharelatex":
|
||||||
log:->
|
log:->
|
||||||
|
|
Loading…
Reference in a new issue