mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 05:25:28 -05:00
Revert "fix acceptance tests"
This reverts commit 7e61102f91654431761f5f72b4355c6e5954b0d7. GitOrigin-RevId: e93c5e079c8b83a77e7a74065c23afb17c9369b3
This commit is contained in:
parent
a6a624eaa3
commit
b57ee58883
1 changed files with 5 additions and 17 deletions
|
@ -1101,21 +1101,9 @@ describe('ProjectStructureChanges', function() {
|
||||||
|
|
||||||
describe('deleting docs', function() {
|
describe('deleting docs', function() {
|
||||||
beforeEach(function(done) {
|
beforeEach(function(done) {
|
||||||
createExampleProject(owner, (err, projectId) => {
|
createExampleProject(this, () => {
|
||||||
if (err) {
|
createExampleFolder(this, () => {
|
||||||
return done(err)
|
createExampleDoc(this, () => {
|
||||||
}
|
|
||||||
this.exampleProjectId = projectId
|
|
||||||
createExampleFolder(owner, projectId, (err, folderId) => {
|
|
||||||
if (err) {
|
|
||||||
return done(err)
|
|
||||||
}
|
|
||||||
this.exampleFolderId = folderId
|
|
||||||
createExampleDoc(owner, projectId, (err, docId) => {
|
|
||||||
if (err) {
|
|
||||||
return done(err)
|
|
||||||
}
|
|
||||||
this.exampleDocId = docId
|
|
||||||
MockDocUpdaterApi.clearProjectStructureUpdates()
|
MockDocUpdaterApi.clearProjectStructureUpdates()
|
||||||
ProjectGetter.getProject(
|
ProjectGetter.getProject(
|
||||||
this.exampleProjectId,
|
this.exampleProjectId,
|
||||||
|
@ -1142,7 +1130,7 @@ 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(this, 'doc', this.exampleDocId, () => {
|
||||||
ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
|
ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
throw error
|
throw error
|
||||||
|
@ -1165,7 +1153,7 @@ 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(this, 'doc', this.exampleDocId, () => {
|
||||||
ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
|
ProjectGetter.getProject(this.exampleProjectId, (error, project) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
throw error
|
throw error
|
||||||
|
|
Loading…
Reference in a new issue