html-docx-js-typescript
Version:
Convert HTML documents to docx format.
23 lines (20 loc) • 386 B
text/typescript
/**
* @jest-environment node
*/
import { asBlob } from '../index'
const HTML_CASE = `<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>jest test</h1>
</body>
</html>`
describe('arguments test', () => {
test(`html`, async () => {
const data = await asBlob(HTML_CASE)
expect(data).toBeInstanceOf(Buffer)
})
})