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