Merge pull request #3655 from overleaf/jpa-change-write-path-doc-deletion
[ProjectEntityUpdateHandler] change write path for doc deletion GitOrigin-RevId: 7d7ece8fe25c1d59b3469c136d92c4c81e9f0f81
This commit is contained in:
@@ -966,34 +966,6 @@ describe('ProjectEntityMongoUpdateHandler', function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('_insertDeletedDocReference', function() {
|
||||
beforeEach(async function() {
|
||||
this.ProjectMock.expects('updateOne')
|
||||
.withArgs(
|
||||
{ _id: this.project._id },
|
||||
{
|
||||
$push: {
|
||||
deletedDocs: {
|
||||
_id: this.doc._id,
|
||||
name: this.doc.name,
|
||||
deletedAt: sinon.match.date
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
.chain('exec')
|
||||
.resolves()
|
||||
await this.subject.promises._insertDeletedDocReference(
|
||||
this.project._id,
|
||||
this.doc
|
||||
)
|
||||
})
|
||||
|
||||
it('should update the database', function() {
|
||||
this.ProjectMock.verify()
|
||||
})
|
||||
})
|
||||
|
||||
describe('_insertDeletedFileReference', function() {
|
||||
beforeEach(async function() {
|
||||
this.DeletedFileMock.expects('create')
|
||||
|
||||
Reference in New Issue
Block a user