Merge pull request #18906 from overleaf/em-migrate-existing-histories-2

History ranges migration script - second attempt

GitOrigin-RevId: 60a2c04e2a72e76a58e9e179fefc4186a96fde32
This commit is contained in:
Eric Mc Sween
2024-06-18 10:00:00 -04:00
committed by Copybot
parent 9d31d7e761
commit 44962fb5d7
28 changed files with 379 additions and 187 deletions
@@ -1066,7 +1066,7 @@ describe('HttpController', function () {
describe('successfully', function () {
beforeEach(function () {
this.HistoryManager.resyncProjectHistory = sinon.stub().callsArgWith(4)
this.HistoryManager.resyncProjectHistory = sinon.stub().callsArgWith(5)
this.HttpController.resyncProjectHistory(this.req, this.res, this.next)
})
@@ -1076,13 +1076,14 @@ describe('HttpController', function () {
this.project_id,
this.projectHistoryId,
this.docs,
this.files
this.files,
{}
)
.should.equal(true)
})
it('should return a successful No Content response', function () {
this.res.sendStatus.calledWith(204).should.equal(true)
this.res.sendStatus.should.have.been.calledWith(204)
})
})
@@ -1090,7 +1091,7 @@ describe('HttpController', function () {
beforeEach(function () {
this.HistoryManager.resyncProjectHistory = sinon
.stub()
.callsArgWith(4, new Error('oops'))
.callsArgWith(5, new Error('oops'))
this.HttpController.resyncProjectHistory(this.req, this.res, this.next)
})