2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/packages/bbob-parser/test/posthtml.test.js
T
Nikolay Kostyurin 2ee5141d8e feat: update all deps versions, move from babel to swc
- move all package commands to scripts/pkg-task
- jest now uses swc
- rollup now uses swc
- move all benchmark packages to benchmark/package.json
2021-10-17 19:57:00 +02:00

14 lines
331 B
JavaScript

import {parse} from '../src'
import { render } from 'posthtml-render'
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 150="150"><b>PostHTML render test</b></size>')
})
});