mirror of
https://github.com/pdfme/pdfme.git
synced 2026-06-18 03:09:14 -04:00
* feat(playground): improve jsx authoring starters * refactor(playground): store authoring starters as template assets * fix(playground): address authoring starter review
20 lines
627 B
TypeScript
20 lines
627 B
TypeScript
import { md2pdf } from '@pdfme/converter/md2pdf';
|
|
import { readAuthoringStarterFixtures } from './authoringStarterFixtures';
|
|
|
|
const md2PdfPresets = readAuthoringStarterFixtures('md2pdf');
|
|
|
|
describe('md2pdf playground presets', () => {
|
|
it.each(md2PdfPresets)('converts the $label preset', async ({ source }) => {
|
|
const result = await md2pdf(source, {
|
|
style: {
|
|
fontName: 'NotoSansJP',
|
|
lineHeight: 1.3,
|
|
},
|
|
});
|
|
|
|
expect(result.inputs).toEqual([{}]);
|
|
expect(result.template.schemas.length).toBeGreaterThan(0);
|
|
expect(result.template.schemas[0]?.length).toBeGreaterThan(0);
|
|
});
|
|
});
|