From 5954e450165731f5e2aa94bdee6d8d72b5586a96 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 24 Sep 2018 15:42:50 +0100 Subject: [PATCH] add missing require --- .../unit/coffee/Templates/TemplatesControllerTests.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/test/unit/coffee/Templates/TemplatesControllerTests.coffee b/services/web/test/unit/coffee/Templates/TemplatesControllerTests.coffee index 5cf52eca39..0cdc90cbda 100644 --- a/services/web/test/unit/coffee/Templates/TemplatesControllerTests.coffee +++ b/services/web/test/unit/coffee/Templates/TemplatesControllerTests.coffee @@ -24,6 +24,9 @@ describe 'TemplatesController', -> @dumpFolder = "dump/path" @ProjectOptionsHandler = {setCompiler:sinon.stub().callsArgWith(2)} @uuid = "1234" + @ProjectRootDocManager = { + setRootDocFromName: sinon.stub().callsArgWith(2) + } @ProjectDetailsHandler = getProjectDescription:sinon.stub() @Project = @@ -31,6 +34,7 @@ describe 'TemplatesController', -> @controller = SandboxedModule.require modulePath, requires: '../../../js/Features/Uploads/ProjectUploadManager':@ProjectUploadManager '../../../js/Features/Project/ProjectOptionsHandler':@ProjectOptionsHandler + '../../../js/Features/Project/ProjectRootDocManager':@ProjectRootDocManager '../../../js/Features/Authentication/AuthenticationController': @AuthenticationController = {getLoggedInUserId: sinon.stub()} './TemplatesPublisher':@TemplatesPublisher "logger-sharelatex":