* 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
11 lines
349 B
TypeScript
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',
|
|
)
|
|
})
|
|
})
|