mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Revert "format fix"
This reverts commit ed06e07c536e3faa984326a02bbc633b7837e859. GitOrigin-RevId: b4ed8349c9867838442af9c06a2a1a54fe40e57b
This commit is contained in:
parent
5abb9ab855
commit
a6a624eaa3
1 changed files with 19 additions and 37 deletions
|
@ -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,
|
|
||||||
'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()
|
||||||
}
|
})
|
||||||
)
|
})
|
||||||
}
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1174,15 +1165,8 @@ 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,
|
|
||||||
'doc',
|
|
||||||
this.exampleDocId,
|
|
||||||
() => {
|
|
||||||
ProjectGetter.getProject(
|
|
||||||
this.exampleProjectId,
|
|
||||||
(error, project) => {
|
|
||||||
if (error) {
|
if (error) {
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
@ -1190,10 +1174,8 @@ describe('ProjectStructureChanges', function() {
|
||||||
this.exampleRootDocId.toString()
|
this.exampleRootDocId.toString()
|
||||||
)
|
)
|
||||||
done()
|
done()
|
||||||
}
|
})
|
||||||
)
|
})
|
||||||
}
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue