Merge pull request #3845 from overleaf/ho-upload-file-mark-updated

mark project as updated when uploading/replacing files

GitOrigin-RevId: 948a3351ac59d4f08411dd83bb543444de0b9b52
This commit is contained in:
Simon Detheridge
2021-03-30 16:40:14 +01:00
committed by Copybot
parent 3d48e1e027
commit 9e2db00d53
2 changed files with 17 additions and 0 deletions

View File

@@ -651,6 +651,13 @@ describe('ProjectEntityUpdateHandler', function() {
.should.equal(true)
})
it('should mark the project as updated', function() {
const args = this.ProjectUpdater.markAsUpdated.args[0]
args[0].should.equal(projectId)
args[1].should.exist
args[2].should.equal(userId)
})
it('sends the change in project structure to the doc updater', function() {
const newFiles = [
{
@@ -769,6 +776,13 @@ describe('ProjectEntityUpdateHandler', function() {
.should.equal(true)
})
it('should mark the project as updated', function() {
const args = this.ProjectUpdater.markAsUpdated.args[0]
args[0].should.equal(projectId)
args[1].should.exist
args[2].should.equal(userId)
})
it('updates the project structure in the doc updater', function() {
const oldFiles = [
{