Get project without doc lines in getAllFolders
This commit is contained in:
@@ -64,6 +64,7 @@ describe 'ProjectEntityHandler', ->
|
||||
'../Docstore/DocstoreManager': @DocstoreManager = {}
|
||||
'logger-sharelatex':{log:->}
|
||||
'./ProjectUpdateHandler': @projectUpdater
|
||||
"./ProjectGetter": @ProjectGetter = {}
|
||||
|
||||
|
||||
describe 'mkdirp', ->
|
||||
@@ -507,12 +508,18 @@ describe 'ProjectEntityHandler', ->
|
||||
folders : []
|
||||
}]
|
||||
]
|
||||
@ProjectGetter.getProjectWithoutDocLines = sinon.stub().callsArgWith(1, null, @project)
|
||||
|
||||
describe "getAllFolders", ->
|
||||
beforeEach ->
|
||||
@callback = sinon.stub()
|
||||
@ProjectEntityHandler.getAllFolders project_id, @callback
|
||||
|
||||
it "should get the project without the docs lines", ->
|
||||
@ProjectGetter.getProjectWithoutDocLines
|
||||
.calledWith(project_id)
|
||||
.should.equal true
|
||||
|
||||
it "should call the callback with the folders", ->
|
||||
@callback
|
||||
.calledWith(null, {
|
||||
|
||||
Reference in New Issue
Block a user