send projectHistoryId with project structure updates

This commit is contained in:
Hayden Faulds
2018-04-13 13:43:11 +01:00
parent e5f3c472e3
commit 3006d018d9
5 changed files with 62 additions and 45 deletions
@@ -267,7 +267,7 @@ describe 'ProjectEntityMongoUpdateHandler', ->
it "calls the callback", ->
changes = { @oldDocs, @newDocs, @oldFiles, @newFiles }
@callback.calledWith(
null, @project.name, @path.fileSystem, @pathAfterMove.fileSystem, @doc.rev, changes
null, @project, @path.fileSystem, @pathAfterMove.fileSystem, @doc.rev, changes
).should.equal true
describe 'deleteEntity', ->
@@ -349,7 +349,7 @@ describe 'ProjectEntityMongoUpdateHandler', ->
it 'calls the callback', ->
changes = { @oldDocs, @newDocs, @oldFiles, @newFiles }
@callback.calledWith(
null, @project.name, '/old.tex', '/new.tex', @doc.rev, changes
null, @project, '/old.tex', '/new.tex', @doc.rev, changes
).should.equal true
describe 'addFolder', ->