Revert "format fix"

This reverts commit ed06e07c536e3faa984326a02bbc633b7837e859.

GitOrigin-RevId: b4ed8349c9867838442af9c06a2a1a54fe40e57b
This commit is contained in:
Ersun Warncke 2020-02-11 09:19:47 -04:00 committed by Copybot
parent 5abb9ab855
commit a6a624eaa3

View file

@ -1142,24 +1142,15 @@ describe('ProjectStructureChanges', function() {
}) })
it('should clear rootDoc_id', function(done) { it('should clear rootDoc_id', function(done) {
deleteItem( deleteItem(owner, this.exampleProjectId, 'doc', this.exampleDocId, () => {
owner, ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
this.exampleProjectId, if (error) {
'doc', throw error
this.exampleDocId, }
() => { expect(project.rootDoc_id).to.be.undefined
ProjectGetter.getProject( done()
this.exampleProjectId, })
(error, project) => { })
if (error) {
throw error
}
expect(project.rootDoc_id).to.be.undefined
done()
}
)
}
)
}) })
}) })
@ -1174,26 +1165,17 @@ describe('ProjectStructureChanges', function() {
}) })
it('should not clear rootDoc_id', function(done) { it('should not clear rootDoc_id', function(done) {
deleteItem( deleteItem(owner, this.exampleProjectId, 'doc', this.exampleDocId, () => {
owner, ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
this.exampleProjectId, if (error) {
'doc', throw error
this.exampleDocId, }
() => { expect(project.rootDoc_id.toString()).to.equal(
ProjectGetter.getProject( this.exampleRootDocId.toString()
this.exampleProjectId,
(error, project) => {
if (error) {
throw error
}
expect(project.rootDoc_id.toString()).to.equal(
this.exampleRootDocId.toString()
)
done()
}
) )
} done()
) })
})
}) })
}) })
}) })