1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 13:53:51 +03:00

enable ui tests

This commit is contained in:
Sérgio Ramos 2016-12-11 23:55:03 +00:00
parent 88a28a9c0c
commit c7272b20b5

View File

@ -6,35 +6,35 @@ const {
shallow shallow
} = enzyme; } = enzyme;
// test('renders <Avatar> without exploding', (t) => { test('renders <Avatar> without exploding', (t) => {
// const Avatar = require('../src/components/avatar'); const Avatar = require('../src/components/avatar');
// const wrapper = shallow(<Avatar />); const wrapper = shallow(<Avatar />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
test('renders <Base> without exploding', (t) => { test('renders <Base> without exploding', (t) => {
const Base = require('../src/components/base'); const Base = require('../src/components/base');
const wrapper = shallow(<Base />); const wrapper = shallow(<Base />);
t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
}); });
//
// test('renders <Button> without exploding', (t) => { test('renders <Button> without exploding', (t) => {
// const Button = require('../src/components/button'); const Button = require('../src/components/button');
// const wrapper = shallow(<Button />); const wrapper = shallow(<Button />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Checkbox> without exploding', (t) => { test('renders <Checkbox> without exploding', (t) => {
// const Checkbox = require('../src/components/checkbox'); const Checkbox = require('../src/components/checkbox');
// const wrapper = shallow(<Checkbox />); const wrapper = shallow(<Checkbox />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Column> without exploding', (t) => { test('renders <Column> without exploding', (t) => {
// const Column = require('../src/components/column'); const Column = require('../src/components/column');
// const wrapper = shallow(<Column />); const wrapper = shallow(<Column />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
test('renders <Container> without exploding', (t) => { test('renders <Container> without exploding', (t) => {
const Container = require('../src/components/container'); const Container = require('../src/components/container');
@ -47,75 +47,75 @@ test('renders <Container> without exploding', (t) => {
// const wrapper = shallow(<Icon />); // const wrapper = shallow(<Icon />);
// t.deepEqual(wrapper.length, 1); // t.deepEqual(wrapper.length, 1);
// }); // });
//
// test('renders <Radio> without exploding', (t) => { test('renders <Radio> without exploding', (t) => {
// const Radio = require('../src/components/radio'); const Radio = require('../src/components/radio');
// const wrapper = shallow(<Radio />); const wrapper = shallow(<Radio />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <RadioGroup> without exploding', (t) => { // test('renders <RadioGroup> without exploding', (t) => {
// const RadioGroup = require('../src/components/radio-group'); // const RadioGroup = require('../src/components/radio-group');
// const wrapper = shallow(<RadioGroup />); // const wrapper = shallow(<RadioGroup />);
// t.deepEqual(wrapper.length, 1); // t.deepEqual(wrapper.length, 1);
// }); // });
//
// test('renders <Row> without exploding', (t) => { test('renders <Row> without exploding', (t) => {
// const Row = require('../src/components/row'); const Row = require('../src/components/row');
// const wrapper = shallow(<Row />); const wrapper = shallow(<Row />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Tab> without exploding', (t) => { test('renders <Tab> without exploding', (t) => {
// const Tab = require('../src/components/tabs/tab'); const Tab = require('../src/components/tabs/tab');
// const wrapper = shallow(<Tab />); const wrapper = shallow(<Tab />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Tabs> without exploding', (t) => { test('renders <Tabs> without exploding', (t) => {
// const Tabs = require('../src/components/tabs'); const Tabs = require('../src/components/tabs');
// const wrapper = shallow(<Tabs />); const wrapper = shallow(<Tabs />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Toggle> without exploding', (t) => { test('renders <Toggle> without exploding', (t) => {
// const Toggle = require('../src/components/toggle'); const Toggle = require('../src/components/toggle');
// const wrapper = shallow(<Toggle />); const wrapper = shallow(<Toggle />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Widget> without exploding', (t) => { test('renders <Widget> without exploding', (t) => {
// const Widget = require('../src/components/widget'); const Widget = require('../src/components/widget');
// const wrapper = shallow(<Widget />); const wrapper = shallow(<Widget />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Input> without exploding', (t) => { test('renders <Input> without exploding', (t) => {
// const Input = require('../src/components/input'); const Input = require('../src/components/input');
// const wrapper = shallow(<Input />); const wrapper = shallow(<Input />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <RangeSlider> without exploding', (t) => { test('renders <RangeSlider> without exploding', (t) => {
// const RangeSlider = require('../src/components/range-slider'); const RangeSlider = require('../src/components/range-slider');
// const wrapper = shallow(<RangeSlider />); const wrapper = shallow(<RangeSlider />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Select> without exploding', (t) => { test('renders <Select> without exploding', (t) => {
// const Select = require('../src/components/select'); const Select = require('../src/components/select');
// const wrapper = shallow(<Select />); const wrapper = shallow(<Select />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Pagination> without exploding', (t) => { test('renders <Pagination> without exploding', (t) => {
// const Pagination = require('../src/components/pagination'); const Pagination = require('../src/components/pagination');
// const wrapper = shallow(<Pagination />); const wrapper = shallow(<Pagination />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });
//
// test('renders <Notification> without exploding', (t) => { test('renders <Notification> without exploding', (t) => {
// const Pagination = require('../src/components/notification'); const Pagination = require('../src/components/notification');
// const wrapper = shallow(<Pagination />); const wrapper = shallow(<Pagination />);
// t.deepEqual(wrapper.length, 1); t.deepEqual(wrapper.length, 1);
// }); });