Fixed tests by removing stdout checks that are no longer valid (#8337)

* Fixed tests by removing stdout checks that are no longer valid

script verbosity was updated in https://github.com/overleaf/internal/commit/c73b46599b51fadb8054cdd7d05e25beb702533d, this checks are no longer valid. After the deleted line there's an extra check that should be good enough for the test case.

GitOrigin-RevId: 2756d11cad97fdbeca44f35c24ee192e582a52c1
This commit is contained in:
Miguel Serrano
2022-06-08 14:48:58 +02:00
committed by Copybot
parent c5f93bedea
commit 6549b93caa
2 changed files with 2 additions and 6 deletions
@@ -85,9 +85,7 @@ describe('BackFillDeletedFiles', function () {
logger.error({ error }, 'script failed')
throw error
}
const { stderr: stdErr, stdout: stdOut } = result
expect(stdOut).to.include(projectId1.toString())
expect(stdOut).to.include(projectId2.toString())
const { stderr: stdErr } = result
expect(stdErr).to.include(`Completed batch ending ${projectId5}`)
}
@@ -74,9 +74,7 @@ describe('BackFillDocNameForDeletedDocs', function () {
logger.error({ error }, 'script failed')
throw error
}
const { stderr: stdErr, stdout: stdOut } = result
expect(stdOut).to.include(projectId1.toString())
expect(stdOut).to.include(projectId2.toString())
const { stderr: stdErr } = result
expect(stdErr).to.include(`Completed batch ending ${projectId2}`)
}