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:
@@ -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>')
|
||||
})
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user