mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Merge pull request #9563 from overleaf/em-tpds-merge-metadata
Return metadata from TPDS update endpoint in web GitOrigin-RevId: 9154be67f7f975807c6e986a5d6fb66013c9a384
This commit is contained in:
@@ -77,6 +77,7 @@ describe('ProjectEntityMongoUpdateHandler', function () {
|
||||
getAllEntitiesFromProject: sinon.stub(),
|
||||
}
|
||||
this.ProjectLocator = {
|
||||
findElementByMongoPath: sinon.stub().throws(new Error('not found')),
|
||||
promises: {
|
||||
findElement: sinon.stub().rejects(new Error('not found')),
|
||||
findElementByPath: sinon.stub().rejects(new Error('not found')),
|
||||
@@ -388,6 +389,9 @@ describe('ProjectEntityMongoUpdateHandler', function () {
|
||||
)
|
||||
.chain('exec')
|
||||
.resolves(this.project)
|
||||
this.ProjectLocator.findElementByMongoPath
|
||||
.withArgs(this.project, 'rootFolder.0.fileRefs.0')
|
||||
.returns(newFile)
|
||||
await this.subject.promises.replaceFileWithNew(
|
||||
this.project._id,
|
||||
this.file._id,
|
||||
|
||||
Reference in New Issue
Block a user