Files
accounted/lib/invoices/__tests__/peppol-delivery.test.ts
T
Mattsson 07e89d9b52 feat(invoices): add Peppol delivery foundation (#1595)
* feat(invoices): add Peppol delivery foundation

* fix(invoices): harden Peppol compliance guards

* fix(api): narrow Peppol document loading

* test(pg): hash Peppol fixture payload

* fix(invoices): address Peppol review findings

* test(pg): isolate Peppol provider events

* test(pg): isolate Peppol submission fixtures
2026-08-13 19:44:32 +02:00

11 lines
349 B
TypeScript

import { describe, expect, it } from 'vitest'
import { sha256Hex } from '../peppol-delivery'
describe('sha256Hex', () => {
it('produces a stable lowercase fingerprint for the exact XML bytes', () => {
expect(sha256Hex('<Invoice>åäö</Invoice>')).toBe(
'ab1c7c9e3a2780e73140e40a0af1a1d355026e3b754049bc6b0e8d03490b4d65',
)
})
})