2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-14 18:42:24 +03:00

feat(html): @bbob/html now can be used without @bbob/core

This commit is contained in:
Nikolay Kostyurin
2019-03-29 10:29:16 +02:00
parent 788d22e081
commit c9e1dabf40
4 changed files with 41 additions and 20 deletions
+2 -7
View File
@@ -1,11 +1,6 @@
import core from '@bbob/core'
import {render} from '../src';
import toHTML, {render} from '../src';
const process = (input, params) => {
const ast = core().process(input).tree;
return render(ast, params)
};
const process = (input, params) => toHTML(input, [], params);
describe('@bbob/html', () => {
test('render bbcode tag with single param as html tag', () => {