From 6822a0d838b65b79904abd678d2aea75e2862091 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Fri, 3 Nov 2017 10:17:55 +0000 Subject: [PATCH] Add assertions for integration module call --- .../test/UnitTests/coffee/Project/V1ProjectGetterTests.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/test/UnitTests/coffee/Project/V1ProjectGetterTests.coffee b/services/web/test/UnitTests/coffee/Project/V1ProjectGetterTests.coffee index a7d2e9f326..c97574550b 100644 --- a/services/web/test/UnitTests/coffee/Project/V1ProjectGetterTests.coffee +++ b/services/web/test/UnitTests/coffee/Project/V1ProjectGetterTests.coffee @@ -29,6 +29,7 @@ describe 'V1ProjectGetter', -> it 'should call the callback with no arguments', -> @callback.calledWith().should.equal true + @IntegrationProjectListGetter.findAllUsersProjects.called.should.equal false describe 'with overleaf-integration-web-module', -> beforeEach -> @@ -50,3 +51,4 @@ describe 'V1ProjectGetter', -> it 'should call the callback with all the projects and tags', -> @callback.calledWith(null, @response).should.equal true + @IntegrationProjectListGetter.findAllUsersProjects.called.should.equal true