test(app): former PDF, observation card, route and schema assertions restored on v3; foreign JSON attachment reported as no_attachment; doc counts

This commit is contained in:
bchanot committed 2026-10-10 12:21:19 +02:00
1 parent 06a2e86f3c
commit 17a6d9b323
9 files changed
+406 -27

No files matched your search

+2
View File
@@ -76,6 +76,8 @@ function parseAttachment(
typeof (data as { version?: unknown }).version === 'number'
? (data as { version: number }).version
: null
// No numeric version at all: not a Faunosteo attachment (legacy message), not an old one.
if (version === null) throw new Error('attachment carries no report version')
try {
return {
...readReportDocument(data, map),