From ab26edb44bc5f0016d215470d1e75e8e167ac0c7 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 1 Jul 2016 10:20:22 +0100 Subject: [PATCH] Adjust UserController unit tests --- .../test/UnitTests/coffee/User/UserControllerTests.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/test/UnitTests/coffee/User/UserControllerTests.coffee b/services/web/test/UnitTests/coffee/User/UserControllerTests.coffee index d92b8f39d7..098b60fe5d 100644 --- a/services/web/test/UnitTests/coffee/User/UserControllerTests.coffee +++ b/services/web/test/UnitTests/coffee/User/UserControllerTests.coffee @@ -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:->