convert TpdsUpdateSender to async and cleanup

GitOrigin-RevId: a19830134a13a23775c604a05a7e093d00bbb2de
This commit is contained in:
Ersun Warncke
2020-05-19 17:17:45 -04:00
committed by Copybot
parent 419100d167
commit 9c87ad9801
4 changed files with 349 additions and 463 deletions

View File

@@ -133,7 +133,10 @@ describe('ProjectEntityUpdateHandler', function() {
addFile: sinon.stub().yields(),
addDoc: sinon.stub(),
deleteEntity: sinon.stub().yields(),
moveEntity: sinon.stub()
moveEntity: sinon.stub(),
promises: {
moveEntity: sinon.stub().resolves()
}
}
this.FileStoreHandler = {
copyFile: sinon.stub(),
@@ -1672,7 +1675,7 @@ describe('ProjectEntityUpdateHandler', function() {
})
it('notifies tpds', function() {
this.TpdsUpdateSender.moveEntity
this.TpdsUpdateSender.promises.moveEntity
.calledWith({
project_id: projectId,
project_name: this.project_name,
@@ -1731,7 +1734,7 @@ describe('ProjectEntityUpdateHandler', function() {
})
it('notifies tpds', function() {
this.TpdsUpdateSender.moveEntity
this.TpdsUpdateSender.promises.moveEntity
.calledWith({
project_id: projectId,
project_name: this.project_name,