pass userId to ProjectEntityHandler.deleteEntity

This commit is contained in:
Hayden Faulds
2017-12-18 15:15:36 +00:00
parent 2ac74b9adc
commit 5f6686ed3b
4 changed files with 23 additions and 26 deletions
@@ -163,7 +163,7 @@ describe 'ProjectEntityHandler', ->
describe "deleting from Mongo", ->
beforeEach (done) ->
@ProjectEntityHandler.deleteEntity project_id, entity_id, @type = 'file', done
@ProjectEntityHandler.deleteEntity project_id, entity_id, @type = 'file', userId, done
it "should retreive the path", ->
@projectLocator.findElement.called.should.equal true
@@ -182,7 +182,7 @@ describe 'ProjectEntityHandler', ->
it "should clean up the entity from the rest of the system", ->
@ProjectEntityHandler._cleanUpEntity
.calledWith(@project, null, @entity, @type, @path.fileSystem)
.calledWith(@project, userId, @entity, @type, @path.fileSystem)
.should.equal true
describe "_cleanUpEntity", ->