Skip to content

Commit 9a8e7c0

Browse files
committed
Add content_hash to test fixtures
Update test fixtures in hitl.service.spec.ts and upload.controller.spec.ts to include the content_hash field in mock document objects.
1 parent db78f60 commit 9a8e7c0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/backend-services/src/hitl/hitl.service.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ describe("HitlService", () => {
4242
normalized_file_path: "/path/to/normalized.pdf",
4343
file_type: "pdf",
4444
file_size: 1000,
45+
content_hash:
46+
"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
4547
metadata: {},
4648
source: "upload",
4749
status: DocumentStatus.extracted,

apps/backend-services/src/upload/upload.controller.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ describe("UploadController", () => {
6767
original_filename: "test.pdf",
6868
file_type: FileType.PDF,
6969
file_size: 123,
70+
content_hash:
71+
"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
7072
status: DocumentStatus.extracted,
7173
created_at: new Date(),
7274
updated_at: new Date(),

0 commit comments

Comments
 (0)