|
@@ -114,7 +114,6 @@ describe('ProjectEntityUpdateHandler', function() {
|
|
|
_confirmFolder: sinon.stub(),
|
|
_confirmFolder: sinon.stub(),
|
|
|
_putElement: sinon.stub(),
|
|
_putElement: sinon.stub(),
|
|
|
_insertDeletedFileReference: sinon.stub(),
|
|
_insertDeletedFileReference: sinon.stub(),
|
|
|
- _insertDeletedDocReference: sinon.stub(),
|
|
|
|
|
replaceFileWithNew: sinon.stub(),
|
|
replaceFileWithNew: sinon.stub(),
|
|
|
mkdirp: sinon.stub(),
|
|
mkdirp: sinon.stub(),
|
|
|
moveEntity: sinon.stub(),
|
|
moveEntity: sinon.stub(),
|
|
@@ -2157,7 +2156,6 @@ describe('ProjectEntityUpdateHandler', function() {
|
|
|
}
|
|
}
|
|
|
this.path = '/path/to/doc'
|
|
this.path = '/path/to/doc'
|
|
|
this.ProjectEntityUpdateHandler.unsetRootDoc = sinon.stub().yields()
|
|
this.ProjectEntityUpdateHandler.unsetRootDoc = sinon.stub().yields()
|
|
|
- this.ProjectEntityMongoUpdateHandler._insertDeletedDocReference.yields()
|
|
|
|
|
this.DocstoreManager.deleteDoc.yields()
|
|
this.DocstoreManager.deleteDoc.yields()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -2185,12 +2183,6 @@ describe('ProjectEntityUpdateHandler', function() {
|
|
|
.should.equal(true)
|
|
.should.equal(true)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- it('should insert the doc into the deletedDocs array', function() {
|
|
|
|
|
- this.ProjectEntityMongoUpdateHandler._insertDeletedDocReference
|
|
|
|
|
- .calledWith(this.project._id, this.doc)
|
|
|
|
|
- .should.equal(true)
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
it('should delete the doc in the doc store', function() {
|
|
it('should delete the doc in the doc store', function() {
|
|
|
this.DocstoreManager.deleteDoc
|
|
this.DocstoreManager.deleteDoc
|
|
|
.calledWith(projectId, this.doc._id.toString(), 'test.tex')
|
|
.calledWith(projectId, this.doc._id.toString(), 'test.tex')
|