[project-history] adopt strict zod types and extend test coverage (#36087)

GitOrigin-RevId: ce1396e87926fc8816afa424c9db2a052c7da5e6
This commit is contained in:
Jakob Ackermann
2026-09-17 11:45:20 +00:00
committed by Copybot
parent 6a0f70bb23
commit 52e5fb3498
10 changed files with 1077 additions and 55 deletions
@@ -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,
},