2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-08 17:22:26 +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
+8 -7
View File
@@ -1,14 +1,15 @@
const React = require('react');
const { shallow } = require('enzyme');
const BBCode = require('../lib');
const presetHTML5 = require('../lib/preset-html5');
const Enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-15');
import React from 'react';
import preset from '@bbob/preset-react';
import { shallow } from 'enzyme';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-15';
import BBCode from '../src';
Enzyme.configure({ adapter: new Adapter() });
const renderBBCode = input => shallow(
<BBCode plugins={[presetHTML5()]}>{input}</BBCode>
<BBCode plugins={[preset()]}>{input}</BBCode>
).html();
describe('@bbob/react', () => {