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:
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user