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