fix(core): Fix file import paths and remove markdown syntax from README

This commit is contained in:
2025-01-01 05:44:55 +01:00
parent e9db94110c
commit 3f91ea44ab
7 changed files with 231 additions and 12 deletions

22
test/assets/getasset.ts Normal file
View File

@ -0,0 +1,22 @@
import * as smartfile from '@push.rocks/smartfile';
export async function getInvoice(filePath: string): Promise<Buffer> {
const file = await smartfile.fs.toBuffer('./test/assets/corpus/' + filePath);
return file;
}
export const invoices = {
ZUGFeRDv2: {
correct: {
intarsys: {
BASIC: {
'zugferd_2p0_BASIC_Einfach.pdf': 'ZUGFeRDv2/correct/intarsys/BASIC/zugferd_2p0_BASIC_Einfach.pdf'
}
}
}
}
}
export const letterObjects = {
letter1: await import('./letter/letter1.js'),
}