mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Revert "format fix"
This reverts commit ed06e07c536e3faa984326a02bbc633b7837e859. GitOrigin-RevId: b4ed8349c9867838442af9c06a2a1a54fe40e57b
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user