2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-11 18:02:26 +03:00

test(parser): add posthtml integration test

This commit is contained in:
Nikolay Kostyurin
2018-07-30 22:49:55 +02:00
parent ebba9bcfc9
commit fdc05c0618
2 changed files with 14 additions and 1 deletions
@@ -0,0 +1,13 @@
const render = require('posthtml-render');
const parse = require('../lib');
describe('posthtml-render', () => {
it('render AST to html', () => {
const ast = parse('[size=150][b]PostHTML render test[/b][/size]');
const html = render(ast);
expect(html).toBe('<size size="150"><b>PostHTML render test</b></size>')
})
});