mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
[project-history] adopt strict zod types and extend test coverage (#36087)
GitOrigin-RevId: ce1396e87926fc8816afa424c9db2a052c7da5e6
This commit is contained in:
@@ -88,7 +88,7 @@ describe('HttpController', function () {
|
||||
|
||||
describe('getProjectBlob', function () {
|
||||
beforeEach(function () {
|
||||
this.blobHash = 'abcd'
|
||||
this.blobHash = 'a'.repeat(40)
|
||||
this.stream = {}
|
||||
this.historyId = new ObjectId().toString()
|
||||
this.HistoryStoreManager.getProjectBlobStream.yields(null, this.stream)
|
||||
@@ -414,7 +414,7 @@ describe('HttpController', function () {
|
||||
body: {
|
||||
version: (this.version = 1),
|
||||
comment: (this.comment = 'a comment'),
|
||||
created_at: (this.created_at = Date.now().toString()),
|
||||
created_at: (this.created_at = new Date()),
|
||||
validate_exists: true,
|
||||
user_id: this.userId,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user