mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-23 23:10:17 +05:30
style: apply Prettier formatting
Run after full implementation to enforce 2-space / 100-char / single-quote conventions across all new + adjacent files.
This commit is contained in:
@@ -12,7 +12,10 @@ describe('EpubFontEmbedder.patchManifest', () => {
|
||||
fs.mkdirSync(fixturesDir, { recursive: true });
|
||||
fs.writeFileSync(fontPath, 'fake-ttf-binary');
|
||||
const zip = new JSZip();
|
||||
zip.file('OEBPS/content.opf', '<?xml version="1.0"?><package xmlns="http://www.idpf.org/2007/opf"></package>');
|
||||
zip.file(
|
||||
'OEBPS/content.opf',
|
||||
'<?xml version="1.0"?><package xmlns="http://www.idpf.org/2007/opf"></package>'
|
||||
);
|
||||
fs.writeFileSync(epubPath, await zip.generateAsync({ type: 'nodebuffer' }));
|
||||
});
|
||||
|
||||
@@ -28,4 +31,4 @@ describe('EpubFontEmbedder.patchManifest', () => {
|
||||
expect(opf).toMatch(/<item[^>]*href="OEBPS\/fonts\/fake\.ttf"/);
|
||||
expect(opf).toMatch(/<item[^>]*media-type="application\/x-font-ttf"/);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user