mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #5860 from overleaf/bg-fix-docupdater-delete-doc
fix docupdater delete operation GitOrigin-RevId: daab03b7659688d53c54ac80756394796d3c6348
This commit is contained in:
@@ -1097,20 +1097,6 @@ describe('RedisManager', function () {
|
||||
.calledWith(`Pathname:${this.doc_id}`, this.newPathname)
|
||||
.should.equal(true)
|
||||
})
|
||||
|
||||
return it('should queue an update', function () {
|
||||
return this.ProjectHistoryRedisManager.queueRenameEntity
|
||||
.calledWithExactly(
|
||||
this.project_id,
|
||||
this.projectHistoryId,
|
||||
'doc',
|
||||
this.doc_id,
|
||||
this.userId,
|
||||
this.update,
|
||||
this.callback
|
||||
)
|
||||
.should.equal(true)
|
||||
})
|
||||
})
|
||||
|
||||
describe('the document is not cached in redis', function () {
|
||||
@@ -1134,20 +1120,6 @@ describe('RedisManager', function () {
|
||||
it('does not update the cached pathname', function () {
|
||||
return this.rclient.set.called.should.equal(false)
|
||||
})
|
||||
|
||||
return it('should queue an update', function () {
|
||||
return this.ProjectHistoryRedisManager.queueRenameEntity
|
||||
.calledWithExactly(
|
||||
this.project_id,
|
||||
this.projectHistoryId,
|
||||
'doc',
|
||||
this.doc_id,
|
||||
this.userId,
|
||||
this.update,
|
||||
this.callback
|
||||
)
|
||||
.should.equal(true)
|
||||
})
|
||||
})
|
||||
|
||||
return describe('getDocVersion', function () {
|
||||
|
||||
Reference in New Issue
Block a user