test: add timestampPdf signature tests with sample.pdf

Test the timestampPdf() function using the real sample.pdf (SHA256 verified).
PdfSigner is mocked to avoid network calls while validating:
- Correct signdate/TSA URL passed to PdfSigner
- PDF bytes forwarded to signer.sign()
- Uint8Array returned from signed result
- Error propagation from TSA failures
- Multiple TSA URL support
- Original PDF bytes not mutated
This commit is contained in:
InstalZDLL committed 2026-03-15 15:44:55 +01:00
1 parent 1569b66d5c
commit 969b74dfb5
2 files changed
+113

No files matched your search

BIN
View File
Binary file not shown.