1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-23 09:42:04 +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>')
})
})