 				done()
 
 	describe 'delete entity :', (done)->
-
 		beforeEach ->
 			@path = "folder/doc1"
 			@type = "mock-type"


		it 'should delete the entity in the editor controller with the correct type', (done)->
			@entity.lines = []
			mock = sinon.mock(@editorController).expects("deleteEntityWithoutLock").withArgs(@project_id, @entity_id, @type, @source, @user_id).callsArg(5)
			@updateMerger.deleteUpdate @user_id, @project_id, @path, @source, ->
				mock.verify()
				done()

	

			@entity_id = "entity_id_here"
			@entity = _id:@entity_id
			@projectLocator.findElementByPath = (project_id, path, cb)=> cb(null, @entity, @type)
			@editorController.deleteEntityWithoutLock = sinon.stub().callsArg(5)

		it 'should get the element id', ->
			@projectLocator.findElementByPath = sinon.spy()
