import assert from 'node:assert/strict'; import { before, describe, it } from 'node:test'; import { createMarkdownProcessor } from '../dist/index.js'; describe('collect images', async () => { let processor; before(async () => { processor = await createMarkdownProcessor(); }); it('should collect inline image paths', async () => { const markdown = `Hello `; const fileURL = 'file.md'; const { code, metadata: { imagePaths }, } = await processor.render(markdown, { fileURL }); assert.equal( code, '
Hello
Hello