0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/markdown/remark/test/strictness.test.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
492 B
JavaScript
Raw Normal View History

import { renderMarkdown } from '../dist/index.js';
import chai from 'chai';
describe('strictness', () => {
it('should allow self-closing HTML tags (void elements)', async () => {
const { code } = await renderMarkdown(
`Use self-closing void elements<br>like word<wbr>break and images: <img src="hi.jpg">`,
{}
);
2022-06-03 08:39:43 -05:00
chai
.expect(code)
.to.equal(
`<p>Use self-closing void elements<br />like word<wbr />break and images: ` +
`<img src="hi.jpg" /></p>`
);
});
});