2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-17 19:21:20 +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
@@ -1,4 +1,5 @@
import {
attrsToString,
attrValue,
appendToNode,
getNodeLength,
@@ -69,5 +70,13 @@ describe('@bbob/plugin-helper', () => {
test('isEOL', () => {
expect(isEOL('\n')).toBe(true)
});
test('attrsToString', () => {
expect(attrsToString({
tag: 'test',
foo: 'bar',
disabled: true
})).toBe(` tag="test" foo="bar" disabled`)
})
});