Merge pull request #17107 from overleaf/jpa-x-update-source-2
[misc] remove ShareLaTeX branding from X-Update-Source header 2/2 GitOrigin-RevId: bebe0212a1f7b4c965cd55a22357e52dfce6dd30
This commit is contained in:
@@ -115,43 +115,6 @@ describe('TpdsController', function () {
|
||||
}
|
||||
})
|
||||
|
||||
it('should process the update with the update receiver by name and old header', function (done) {
|
||||
this.req = {
|
||||
params: {
|
||||
0: `${this.projectName}${this.path}`,
|
||||
user_id: this.user_id,
|
||||
project_id: '',
|
||||
},
|
||||
headers: {
|
||||
'x-sl-update-source': (this.source = 'dropbox'),
|
||||
},
|
||||
}
|
||||
const res = {
|
||||
json: payload => {
|
||||
expect(payload).to.deep.equal({
|
||||
status: 'applied',
|
||||
projectId: this.metadata.projectId.toString(),
|
||||
entityId: this.metadata.entityId.toString(),
|
||||
folderId: this.metadata.folderId.toString(),
|
||||
entityType: this.metadata.entityType,
|
||||
rev: this.metadata.rev.toString(),
|
||||
})
|
||||
this.TpdsUpdateHandler.promises.newUpdate
|
||||
.calledWith(
|
||||
this.user_id,
|
||||
'', // projectId
|
||||
this.projectName,
|
||||
this.path,
|
||||
this.req,
|
||||
this.source
|
||||
)
|
||||
.should.equal(true)
|
||||
done()
|
||||
},
|
||||
}
|
||||
this.TpdsController.mergeUpdate(this.req, res)
|
||||
})
|
||||
|
||||
it('should process the update with the update receiver by name', function (done) {
|
||||
const res = {
|
||||
json: payload => {
|
||||
|
||||
Reference in New Issue
Block a user