Merge pull request #3652 from overleaf/jpa-tell-docstore-doc-name-on-delete

[DocStoreManager] pass doc name as part of DELETE request

GitOrigin-RevId: cdb5fb21580a95aa8a78e0a44ca1e4db4da7f934
This commit is contained in:
Jakob Ackermann
2021-04-06 11:15:00 +02:00
committed by Copybot
parent 380dc41b17
commit 92194202d7
6 changed files with 55 additions and 19 deletions

View File

@@ -2180,10 +2180,9 @@ describe('ProjectEntityUpdateHandler', function() {
})
it('should delete the doc in the doc updater', function() {
this.DocumentUpdaterHandler.deleteDoc.calledWith(
projectId,
this.doc._id.toString()
)
this.DocumentUpdaterHandler.deleteDoc
.calledWith(projectId, this.doc._id.toString())
.should.equal(true)
})
it('should insert the doc into the deletedDocs array', function() {
@@ -2194,7 +2193,7 @@ describe('ProjectEntityUpdateHandler', function() {
it('should delete the doc in the doc store', function() {
this.DocstoreManager.deleteDoc
.calledWith(projectId, this.doc._id.toString())
.calledWith(projectId, this.doc._id.toString(), 'test.tex')
.should.equal(true)
})