mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
format fix
GitOrigin-RevId: ed06e07c536e3faa984326a02bbc633b7837e859
This commit is contained in:
parent
b4fbb0c9fc
commit
5abb9ab855
1 changed files with 37 additions and 19 deletions
|
@ -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,
|
||||||
if (error) {
|
this.exampleProjectId,
|
||||||
throw error
|
'doc',
|
||||||
}
|
this.exampleDocId,
|
||||||
expect(project.rootDoc_id).to.be.undefined
|
() => {
|
||||||
done()
|
ProjectGetter.getProject(
|
||||||
})
|
this.exampleProjectId,
|
||||||
})
|
(error, project) => {
|
||||||
|
if (error) {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
expect(project.rootDoc_id).to.be.undefined
|
||||||
|
done()
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1165,17 +1174,26 @@ 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,
|
||||||
if (error) {
|
this.exampleProjectId,
|
||||||
throw error
|
'doc',
|
||||||
}
|
this.exampleDocId,
|
||||||
expect(project.rootDoc_id.toString()).to.equal(
|
() => {
|
||||||
this.exampleRootDocId.toString()
|
ProjectGetter.getProject(
|
||||||
|
this.exampleProjectId,
|
||||||
|
(error, project) => {
|
||||||
|
if (error) {
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
expect(project.rootDoc_id.toString()).to.equal(
|
||||||
|
this.exampleRootDocId.toString()
|
||||||
|
)
|
||||||
|
done()
|
||||||
|
}
|
||||||
)
|
)
|
||||||
done()
|
}
|
||||||
})
|
)
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue