1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00
portfolio/scripts/content/markdown.test.ts

10 lines
261 B
TypeScript

import { markdownToHtml } from './markdown'
describe('lib/markdown', () => {
test('markdownToHtml', async () => {
const markdown = '# Hello World'
const html = await markdownToHtml(markdown)
expect(html).toContain('<h1>Hello World</h1>')
})
})