mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
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:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user