2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-20 20:00:33 +03:00

add html5 preset, some files structure changes

This commit is contained in:
Nikolay Kostyurin
2018-07-06 00:38:29 +02:00
parent 12144415cc
commit 21ef50cf1d
21 changed files with 322 additions and 80 deletions
@@ -0,0 +1,15 @@
const preset = require('../lib/index');
const bbob = require('@bbob/core');
const processor = bbob([
preset(),
]);
describe('bbob-preset-html5', () => {
test('render [url]', () => {
const input = '[url=https://ru.wikipedia.org]Text[/url]';
const result = '<a href="https://ru.wikipedia.org">Text</a>';
expect(processor.process(input, { sync: true })).toBe(result);
});
});