From b57ee58883e83390cca84d517533d1d35a6b04ec Mon Sep 17 00:00:00 2001 From: Ersun Warncke Date: Tue, 11 Feb 2020 09:19:47 -0400 Subject: [PATCH] Revert "fix acceptance tests" This reverts commit 7e61102f91654431761f5f72b4355c6e5954b0d7. GitOrigin-RevId: e93c5e079c8b83a77e7a74065c23afb17c9369b3 --- .../acceptance/src/ProjectStructureTests.js | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/services/web/test/acceptance/src/ProjectStructureTests.js b/services/web/test/acceptance/src/ProjectStructureTests.js index f89317fc76..8a392d36f2 100644 --- a/services/web/test/acceptance/src/ProjectStructureTests.js +++ b/services/web/test/acceptance/src/ProjectStructureTests.js @@ -1101,21 +1101,9 @@ describe('ProjectStructureChanges', function() { describe('deleting docs', function() { beforeEach(function(done) { - createExampleProject(owner, (err, projectId) => { - if (err) { - return done(err) - } - 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 + createExampleProject(this, () => { + createExampleFolder(this, () => { + createExampleDoc(this, () => { MockDocUpdaterApi.clearProjectStructureUpdates() ProjectGetter.getProject( this.exampleProjectId, @@ -1142,7 +1130,7 @@ describe('ProjectStructureChanges', function() { }) 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) => { if (error) { throw error @@ -1165,7 +1153,7 @@ describe('ProjectStructureChanges', function() { }) 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) => { if (error) { throw error