(entries: Record<string, string | Uint8Array>)
| 3 | import { parseZip } from '@/lib/pptx-renderer/parser/zip-parser' |
| 4 | |
| 5 | async function createZip(entries: Record<string, string | Uint8Array>): Promise<ArrayBuffer> { |
| 6 | const zip = new JSZip() |
| 7 | for (const [path, content] of Object.entries(entries)) { |
| 8 | zip.file(path, content) |
| 9 | } |
| 10 | return zip.generateAsync({ type: 'arraybuffer' }) |
| 11 | } |
| 12 | |
| 13 | describe('parseZip', () => { |
| 14 | it('extracts PPTX package parts into categorized maps', async () => { |