mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
move deleteProject from collab manager to editor controller
This commit is contained in:
@@ -609,3 +609,15 @@ describe "EditorController", ->
|
||||
done()
|
||||
|
||||
|
||||
describe "deleteProject", ->
|
||||
|
||||
beforeEach ->
|
||||
@err = "errro"
|
||||
@ProjectHandler::deleteProject = sinon.stub().callsArgWith(1, @err)
|
||||
|
||||
it "should call the project handler", (done)->
|
||||
@EditorController.deleteProject @project_id, (err)=>
|
||||
err.should.equal @err
|
||||
@ProjectHandler::deleteProject.calledWith(@project_id).should.equal true
|
||||
done()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user