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

refactor(*): convert to babel and generation to lib, es, dist folders (#2)

* refactor(*): convert to babel and generation to lib, es, dist

* chore(*): remove generated files

* fix(*): lint run command
This commit is contained in:
Nikolay Kostyurin
2018-09-09 23:55:28 +02:00
committed by GitHub
parent d22a2895a4
commit 32a7fb51da
76 changed files with 930 additions and 10174 deletions
@@ -1,4 +1,4 @@
const TagNode = require('../lib/TagNode');
import TagNode from '../src/TagNode'
describe('@bbob/plugin-helper/lib/TagNode', () => {
test('create', () => {
@@ -1,10 +1,10 @@
const {
import {
attrValue,
appendToNode,
getNodeLength,
isTagNode,
isStringNode,
} = require('../lib');
} from '../src';
describe('@bbob/plugin-helper', () => {
test('appendToNode', () => {
@@ -61,7 +61,7 @@ describe('@bbob/plugin-helper', () => {
});
test('attrValue object', () => {
const attrs = { tag: 'test'};
const attrs = { tag: 'test' };
expect(attrValue('test', attrs)).toBe('test="{"tag":"test"}"');
});