mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:33:27 +00: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) {
|
||||
deleteItem(
|
||||
owner,
|
||||
this.exampleProjectId,
|
||||
'doc',
|
||||
this.exampleDocId,
|
||||
() => {
|
||||
ProjectGetter.getProject(
|
||||
this.exampleProjectId,
|
||||
(error, project) => {
|
||||
if (error) {
|
||||
throw error
|
||||
}
|
||||
expect(project.rootDoc_id).to.be.undefined
|
||||
done()
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
deleteItem(owner, this.exampleProjectId, 'doc', this.exampleDocId, () => {
|
||||
ProjectGetter.getProject(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) {
|
||||
deleteItem(
|
||||
owner,
|
||||
this.exampleProjectId,
|
||||
'doc',
|
||||
this.exampleDocId,
|
||||
() => {
|
||||
ProjectGetter.getProject(
|
||||
this.exampleProjectId,
|
||||
(error, project) => {
|
||||
if (error) {
|
||||
throw error
|
||||
}
|
||||
expect(project.rootDoc_id.toString()).to.equal(
|
||||
this.exampleRootDocId.toString()
|
||||
)
|
||||
done()
|
||||
}
|
||||
deleteItem(owner, this.exampleProjectId, 'doc', this.exampleDocId, () => {
|
||||
ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
|
||||
if (error) {
|
||||
throw error
|
||||
}
|
||||
expect(project.rootDoc_id.toString()).to.equal(
|
||||
this.exampleRootDocId.toString()
|
||||
)
|
||||
}
|
||||
)
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue