mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Merge pull request #2378 from overleaf/bg-return-history-display-type-to-docupdater
return history display type to docupdater GitOrigin-RevId: bc90317677937c4f0698c2045958b79820ec3b3f
This commit is contained in:
@@ -153,9 +153,16 @@ describe('DocumentController', function() {
|
||||
beforeEach(function() {
|
||||
this.doc = { _id: this.doc_id }
|
||||
this.projectHistoryId = 1234
|
||||
this.projectHistoryDisplay = true
|
||||
this.projectHistoryType = 'project-history'
|
||||
this.project = {
|
||||
_id: this.project_id,
|
||||
overleaf: { history: { id: this.projectHistoryId } }
|
||||
overleaf: {
|
||||
history: {
|
||||
id: this.projectHistoryId,
|
||||
display: this.projectHistoryDisplay
|
||||
}
|
||||
}
|
||||
}
|
||||
this.ProjectGetter.getProject = sinon
|
||||
.stub()
|
||||
@@ -180,7 +187,7 @@ describe('DocumentController', function() {
|
||||
)
|
||||
})
|
||||
|
||||
it('should return the history id to the client as JSON', function() {
|
||||
it('should return the history id and display setting to the client as JSON', function() {
|
||||
this.res.type.should.equal('application/json')
|
||||
return this.res.body.should.equal(
|
||||
JSON.stringify({
|
||||
@@ -188,7 +195,8 @@ describe('DocumentController', function() {
|
||||
version: this.version,
|
||||
ranges: this.ranges,
|
||||
pathname: this.pathname,
|
||||
projectHistoryId: this.projectHistoryId
|
||||
projectHistoryId: this.projectHistoryId,
|
||||
projectHistoryType: this.projectHistoryType
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user