Stub V1 project getter

This commit is contained in:
Alasdair Smith 2017-11-14 11:38:46 +00:00
parent 47942816ae
commit 3eaf6c5d8e

View file

@ -389,6 +389,7 @@ describe "ProjectController", ->
@TagsHandler.getAllTags.callsArgWith(1, null, @tags, {})
@NotificationsHandler.getUserNotifications = sinon.stub().callsArgWith(1, null, @notifications, {})
@ProjectGetter.findAllUsersProjects.callsArgWith(2, null, @allProjects)
@V1ProjectGetter.findAllUsersProjects.callsArg(1) # Without integration module cb returns without args
it "should render the project/list page", (done)->
@res.render = (pageName, opts)=>