Updated currentUserService mocks for CreateProjectFormCtrl tests

stable
Daniel García 2018-11-19 11:04:51 +01:00 committed by Alex Hermida
parent cbd977b424
commit cd942e573a
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ describe "CreateProjectFormCtrl", ->
_mockCurrentUserService = ->
mocks.currentUserService = {
canCreatePublicProjects: sinon.stub().returns({valid: true}),
canCreatePrivateProjects: sinon.stub().returns({valid: true})
canCreatePrivateProjects: sinon.stub().returns({valid: true}),
loadProjects: sinon.stub()
}
$provide.value("tgCurrentUserService", mocks.currentUserService)