mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
[document-updater] adopt strict zod types and extend test coverage (#36077)
* [document-updater] adopt strict zod types and extend test coverage * [saas-e2e] add test for project restore with binary and linked file GitOrigin-RevId: a8e45bd1e46b6ac8a293da24c8b8ad7b236fd9bd
This commit is contained in:
@@ -78,8 +78,7 @@ describe('ProjectManager - getProjectDocsAndFlushIfOld', function () {
|
||||
this.result =
|
||||
await this.ProjectManager.promises.getProjectDocsAndFlushIfOld(
|
||||
this.project_id,
|
||||
this.projectStateHash,
|
||||
this.excludeVersions
|
||||
this.projectStateHash
|
||||
)
|
||||
})
|
||||
|
||||
@@ -112,8 +111,7 @@ describe('ProjectManager - getProjectDocsAndFlushIfOld', function () {
|
||||
await expect(
|
||||
this.ProjectManager.promises.getProjectDocsAndFlushIfOld(
|
||||
this.project_id,
|
||||
this.projectStateHash,
|
||||
this.excludeVersions
|
||||
this.projectStateHash
|
||||
)
|
||||
).to.be.rejectedWith(Errors.ProjectStateChangedError)
|
||||
})
|
||||
@@ -147,8 +145,7 @@ describe('ProjectManager - getProjectDocsAndFlushIfOld', function () {
|
||||
await expect(
|
||||
this.ProjectManager.promises.getProjectDocsAndFlushIfOld(
|
||||
this.project_id,
|
||||
this.projectStateHash,
|
||||
this.excludeVersions
|
||||
this.projectStateHash
|
||||
)
|
||||
).to.be.rejected
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user