<Select> non-exploding test

This commit is contained in:
Sérgio Ramos 2016-10-31 17:34:36 +00:00
parent ebefc42d53
commit cc0c7896ea
2 changed files with 9 additions and 3 deletions

View File

@ -10,7 +10,7 @@ module.exports = {
Tabs: require('./components/tabs'),
Toggle: require('./components/toggle'),
Input: require('./components/input'),
RangeSlider: require('./components/range-slider/'),
RangeSlider: require('./components/range-slider'),
Radio: require('./components/radio'),
RadioGroup: require('./components/radio-group'),
Select: require('./components/select'),

View File

@ -97,7 +97,13 @@ test('renders <Input> without exploding', (t) => {
});
test('renders <RangeSlider> without exploding', (t) => {
const Input = require('../src/components/range-slider');
const wrapper = shallow(<Input />);
const RangeSlider = require('../src/components/range-slider');
const wrapper = shallow(<RangeSlider />);
t.deepEqual(wrapper.length, 1);
});
test('renders <Select> without exploding', (t) => {
const Select = require('../src/components/select');
const wrapper = shallow(<Select />);
t.deepEqual(wrapper.length, 1);
});