format fix

GitOrigin-RevId: ed06e07c536e3faa984326a02bbc633b7837e859
This commit is contained in:
Ersun Warncke 2020-02-07 08:59:15 -04:00 committed by Copybot
parent b4fbb0c9fc
commit 5abb9ab855

View file

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